0
I’m using "ng-include" to add the menu on a page, it loads the menu, but the javascript stops working.
I don’t have much knowledge in Angularjs.
It’s like this in html:
<script src="/../js/angular.min.js" type="text/javascript" charset="UTF-8"></script>
<script src="/../js/angular-route.min.js" type="text/javascript" charset="UTF-8"></script>
<section ng-include src="'/../header.min.html'"></section>
<script>
$('.navbar .dropdown .fa').on('click', function (){
$(this).parent('li').children('.dropdown-menu').slideToggle();
});
</script>
What I would have to do to run javascript?
I didn’t succeed, I tried both ways.
– Kim Hanneman
Any error appears in the browser console?
– Giovane
No errors, just a source reference
– Kim Hanneman