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

2,712 views
Skip to first unread message

ranj...@gmail.com

unread,
Aug 30, 2012, 11:31:57 AM8/30/12
to ang...@googlegroups.com

 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?

da...@thesmithfam.org

unread,
Nov 21, 2012, 2:27:37 PM11/21/12
to ang...@googlegroups.com, ranj...@gmail.com
Reply all
Reply to author
Forward
0 new messages