I am new to AngularJs. I have a situation that I need to fetch same data for multiple controller. So, I came to know to use angularJs service for this and call that service from controller.
Now, when I call this service from both of the controller, the service get hit twice. I have cached the data in service, but still the service generates two ajax request to the server.
How to handle this situation?