Answer the question
In order to leave comments, you need to log in
How can controllers in Angular communicate with each other?
I have 2 controllers, navigation and content. The handler functions for the menu buttons are described in the first controller, the data is replaced and output to the {{ }} labels in the second controller. How can I pass data from controller to controller if the click event is handled in the first controller?
Answer the question
In order to leave comments, you need to log in
Data is stored in services.
Controllers are the link between services and user events.
And this applies not only to angular.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question