0
I would like it to make a sound by hovering the mouse in the menus of my application, but I don’t know how to do it
HTML:
<div class="itemsMenu" ng-mouseover="playAudio()"><i class="fas fa-users"></i></div>
main.componentts.:
playAudio(){
let audio = new Audio();
audio.src = "/assets/menu.wav";
audio.load();
audio.play();
}