AngularJS: How to make angular load script inside ng-include?

Posted by Ranjith R on Stack Overflow See other posts from Stack Overflow or by Ranjith R
Published on 2012-08-30T13:22:48Z Indexed on 2012/08/30 15:38 UTC
Read the original article Hit count: 276

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about angularjs

Related posts about angular