We are all using interceptors for our applications. But since i used it, i don't understand the retunr statement of the request & response method inside the interceptor :
return config || $q.when(config);
As i understand it, if the config object is undefined the method will return the config wrap in the when method of promise API because we don't know if it's a promise or not. That's ok i think.
But my question is how is it possible to get an undefined config Object in a request ?
Thx for your replies