Is multiple interceptors supported in Angular?
Yes, Angular supports multiple interceptors at a time. You could define multiple interceptors in providers property:
providers: [{ provide: HTTP_INTERCEPTORS, useClass: MyFirstInterceptor, multi: true },{ provide: HTTP_INTERCEPTORS, useClass: MySecondInterceptor, multi: true }],
The interceptors will be called in the order in which they were provided. i.e, MyFirstInterceptor will be called first in the above interceptors configuration.
August 12, 2022
254
Read more
What is Angular Framework?
November 04, 2022
AngularWhat is a Angular module?
November 03, 2022
AngularWhat are the steps to use animation module?
October 31, 2022
Angular