Reproduciendo sonido en vue.js
var data = { soundurl : 'http://soundbible.com/mp3/analog-watch-alarm_daniel-simion.mp3'}
new Vue({
el: '#app',
data: data,
methods: {
playSound () {
var audio = new Audio(data.soundurl);
audio.play();
}
}
});
kells Kamuzu