javascript - Angular4 - My script events doesn't work after routerLink click -


i'm new in angular. have script in jquery sintax , scripts many efects on dom. when start application script works after click in routerlink inside dom mouse events dosen't work, click events. ideia problem? tks!

example of code:

$(document).ready(function(){      $.material.init();       $("#side-menu").children().children().mouseover(function(){         $(this).addclass('_active');     }).mouseout(function(){         $(this).removeclass('_active');     }); } 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -