15 Dec Interceptors in Angular
Why we need Interceptors?Very often we want to enforce or apply behaviour when receiving or sending HTTP requests within our application. We want to perform the tasks like authenticating, logging, updating the request header, error catching etc. for every http request/response. For this we need to do it explicitly for each and every http call which involves lots of energy...