I am new to AngularJs. I have a situation where I need to get the same data for several controllers. So, I found out that I use the angularJs service for this, and I call this service on the controller.
Now, when I call this service from both controllers, the service receives twice. I cached the data in the service, but still the service generates two ajax requests to the server.
How to cope with this situation?
source
share