I am trying to create an interceptor for all requests. I decided to use
[addResponseInterceptor][1] of restangular.
It says
The responseInterceptor is called after we get each response from the
server.
I used this function to create the interceptor.
rest.addResponseInterceptor(function (data, operation, what, url,
response, deferred) {
console.log(url);
return data;
});
But this isn't intercept error requests. eg 500. Am I doing something
wrong? or the addResponseInterceptor is made to just work for 200 responses
?
--
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.