Hello,

I would like to be able to intercept all AJAX calls made with $http service 
to prevent the any XHR calls and respond with data from an Angular service 
(for example).
So the data is in memory, not from a remote resource.

I want to be able to to this at runtime at the switch of a button, e.g. 
"Cut server communication ON / OFF".

As far as I can see, HTTP request interceptors can only modify the config 
object and return it, but cannot return actual data as response.

How can this be achieved?

Thank you.

-- 
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.

Reply via email to