M
M
Maxim Ivanov2016-07-14 12:21:51
Angular
Maxim Ivanov, 2016-07-14 12:21:51

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

2 answer(s)
M
Mikhail Osher, 2016-07-14
@miraage

Data is stored in services.
Controllers are the link between services and user events.
And this applies not only to angular.

K
Kano, 2016-07-14
@Kano

As an option, through the binding of model properties with change tracking.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question