Cancelling Ajax requests in AngularJS applications

When we, at Rackspace were working on a data visualization dashboard which uses AngularJS framework, we needed to abort requests. Fortunately, AngularJS has amazing built in services of which $http and $resource helped us make these XHR(Ajax) requests much simpler. There are many resources to figure out which might be better for your use case. I’m going to describe how I implemented aborts in $resource and $http in an unified way which increased the performance and showed correct data.

Read More