Jens Alenius
Jens Alenius

Reputation: 1931

AngularJS scalability when using ng-view/partial

Is it possible to add script tag inside a partial/template in AngularJS? I can only use ng-view (with router) if I load the partial controller.js in the main page. This will not work well if you have a app with a lot of pages. I have heard about a JQuery fix, which I tried unsuccessful. I could solve it by using JSP, MVC4 or Wicket but that's a quite big overhead. I heard about the RequireJS solution but some say its not realy what RequireJS is for.

Upvotes: 0

Views: 254

Answers (1)

Related Questions