Question: What is the purpose of Angular interceptors?Answer: Angular interceptors are used to intercept HTTP requests and responses globally. They allow you to modify the request or response before it is sent or received by the application. Interceptors are commonly used for tasks such as authentication, logging, or adding headers.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users: