Posted On: Mar 13, 2020
The HTTP Interceptor service is used to handle the errors specific in Angular 2. The HTTP Interceptor service can be created and registered globally at the root module using the Angular Providers. Once it is defined at the root module, the HTTP Interceptor will intercept all the HTTP requests and the responses. So it makes an ideal place to catch all the common errors and handle them.
Never Miss an Articles from us.