Hi, I have solved the same problem but with basic array object.
Hope it helps you. Before firing the request, I check the array object with the key.*[In my case key is params string with the url]*. If the response is there, I serve the response from the array object, else I fire the request and store the response in the array in success callback for future reference. Regards, Jagadesh On Fri, Jul 11, 2014 at 8:05 PM, Sander Elias <[email protected]> wrote: > Hi Francisc, > > I didn't try an decorator on $http myself, but it never hurts to try. It > might be an easy way around! > (which is exactly what you are asking for, with an decorator you replace > $http with something of your > own, which in turn can call the original $http) > > > Regards > Sander > > -- > 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. > -- Regards Jagadesh -- 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.
