Answer the question
In order to leave comments, you need to log in
How to reuse ng-controller as singleton?
Each time the ng-controller directive is used, a new controller instance is created.
Is it possible to make such a controller a singleton? If so, how?
PS: The option to transfer the directive to one of the parent elements is not feasible in my case.
Answer the question
In order to leave comments, you need to log in
For this factory are invented. Use at least 50 instances of the controller, and store the data in one place.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question