What is the use of http interceptor?



What is the use of http interceptor?..

Answer / Tara Datt Joshi

An HTTP interceptor in AngularJS is used to intercept HTTP requests and responses. Interceptors can be used for modifying outgoing requests (e.g., adding or removing headers) or transforming incoming responses. They are useful for implementing global functionality like logging, error handling, and authentication.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What are types in typescript?

1 Answers  


Explain filter filter?

1 Answers  


What is class binding in angular?

1 Answers  


Can you bootstrap multiple angular applications on same element?

1 Answers  


Why $scope is used in angularjs?

1 Answers  


Explain two-way binding in angularjs?

1 Answers  


Differentiate between dom and bom.

1 Answers  


How to bypass angular xss protection?

1 Answers  


How will you implement autorefresh in angularjs?

1 Answers  


What is the key difference between angular expressions and javascript expressions?

1 Answers  


Does angularjs need a server?

1 Answers  


Explain what is string interpolation in angular.js ?

1 Answers  


Categories