Answer the question
In order to leave comments, you need to log in
How to stop execution of a connected script in Angular?
I connect the script to one of the states (ui-router) via "script src=", but after I change the state the script continues to work in the background. How can I stop script execution?
PS: I tried to destroy the element on $on('$destroy'), but it didn't help..
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question