What is an interceptor in Angular? Why it is used?

devquora
devquora

Posted On: Feb 22, 2018

 

An interceptor is a middleware code in AngularJs where all the $http requests go through. It is attached with $httpProvider service and able to intercept request and response objects. Interceptor Middleware is useful for error handling, authentication and other filters you want to apply on request and response.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions