Answer the question
In order to leave comments, you need to log in
How to properly style controller interaction in AngularJS?
For example, there are two controllers. In one of them, a request is sent to the server to receive data. It is necessary that when a certain function is executed in the second controller, a request to the server would be executed in the first one. How to implement this? Or is this generally a bad idea and the architecture needs to be redone?
Answer the question
In order to leave comments, you need to log in
Or is this generally a bad idea and the architecture needs to be redone?
why requests to the server in controllers?
Submit a request to the service, after executing the function in controller number 2, call the service
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question