what is interceptor in angularjs?
what is interceptor in angularjs? how can i use it, want an exmple?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal PrajapatiPosted Feb 14, 2017, 11:11 PM
1) http://www.webdeveasy.com/interceptors-in-angularjs-and-useful-examples/
2) https://docs.angularjs.org/api/ng/service/$http
Naveen BishtPosted Feb 14, 2017, 11:35 PM
Pradeep SahooPosted Feb 14, 2017, 11:28 PM
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.