I'm going to assume you are accessing the same resource n times. Say you are trying to access the following resource in your api:
/api/v1/resource-name/:id If you want for $resource service to store the request and use the same promise for all subsequent requests to the same resource, you need to add a new GET action to your resource instance with the cache set to true. I'm writing this on a phone so I can't write the example, so I would ask you to check angularjs.org documentation on the $resource service. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
