P
P
pontiac3582015-08-23 21:19:15
Angular
pontiac358, 2015-08-23 21:19:15

How to make scripts work when switching pages in angular?

jquery plugins stop working when switching pages. (pages are inserted into ng-view )
Plugins are initialized in one main.js file. This file is included in the main template.
Is there any way to reconnect this script or something ... Or the only way is to pull out all the initializing scripts from main.js and insert them into each page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2015-08-23
@miraage

All jQuery plugins must be called in their respective directives.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question