Sunday, August 17, 2014

How to cancel all the old XHR (http / ajax ) requests on state change (url change) - AngularJS Interceptor

11:31 PM Posted by Unknown , , 3 comments
I am working on an AngularJS app which earlier was a jquery based web app. Still some global utilities are using jquery and we haven't yet converted that fully to AngularJS. The whole app workflow is now handled with state changes using Angular UI Router. So, on state change, we will send the XHR requests...