This is a jquery
code in my HTML template
. I am using a HTML template
and sliced
it to different components
and created an angular project
.
// class add mouse hover
jQuery('.custom-nav > li').hover(function(){
jQuery(this).addClass('nav-hover');
}, function(){
jQuery(this).removeClass('nav-hover');
});
This code is not working.
The file is saved in a folder named assets
inside node_modules
as scripts_custom.js
. The file is included in angular.json
.
I am new to angular6
. Please do help me to correct it.