AngularJS: How to make angular load script inside ng-include?
- by Ranjith R
Hey I am building a web page with angular. The problem is that there are somethings already build without angular and I have to include them as well
The problem is this.
I have something like this in my main.html:
<ngInclude src="partial.html">
</ngInclude>
And my partial.html has something like this
<h2> heading 1 <h2>
<script type="text/javascript" src="static/js/partial.js">
</script>
And my partial.js has nothing to do with angularjs. nginclude works and I can see the html, but I can not see the javascript file being loaded at all. I know how to use firebug/ chrome-dev-tool, but I can not even see the network request being made. What am I doing wrong?
I knwo angular has some special meaning to script tag. Can I override it?