What is interceptor in angularjs?
what is interceptor in angularjs? how can i use it, want an exmple?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishal PrajapatiRank #836 · 2.7K reputationPosted Feb 14, 2017, 6:11 PM EST
1) http://www.webdeveasy.com/interceptors-in-angularjs-and-useful-examples/
2) https://docs.angularjs.org/api/ng/service/$http
Pradeep SahooRank #489 · 5.1K reputationPosted Feb 14, 2017, 6:28 PM EST
For example, appending the authentication token to every HTTP request and that token is generated from the client who needs to be validated at the server for security purpose.
These interceptors act as a hook up for the HTTP calls.
Naveen BishtRank #1,462 · 1.1K reputationPosted Feb 14, 2017, 6:35 PM EST