Huang Ruijun
Huang Ruijun

Reputation: 11

java script doesnt load under angular ng-view partial pages?

Currently I am doing a project using angular js and bootstrap. And i am implementing some partial pages using ng-view to display those pages, but every time i am trying to using java script or jquery feature, the scripts seems not loaded, i have checked it is not a jquery conflicts problem. Please help me. Thanks in advance.

Upvotes: 1

Views: 2064

Answers (1)

Valentyn Shybanov
Valentyn Shybanov

Reputation: 19391

Try to put link to jQuery before AngularJS in your main page.

The reason could be that AngularJS's implementation of jQuery (JQLite) do not support <script> tags in partials yet. But if you put jQuery before AngularJS, Angular will use "real" jQuery, that has advanced implementation of Ajax requests and special handle <script> tags inside loaded HTML.

Upvotes: 2

Related Questions