How to play a sound in angularjs
$scope.playAudio = function() {
var audio = new Audio('audio/song.mp3');
audio.play();
};
var playSound = function(mp3File){
var audioElement = document.createElement('audio');
audioElement.setAttribute('src', "/sound/"+mp3File);
audioElement.play();
}