You could write a directive that exposes a function for handling noscript
tags within an include. You could call the function via the onload
attribute of the ng-include
.
Fiddle: http://jsfiddle.net/REYhN/
Please note, that you should avoid doing DOM manipulation in controllers. That's what directives are for: http://docs.angularjs.org/api/ng/service/$compile