Search SSWUG.ORG:



DATABASES

Aborting AJAX Requests Using $http And AngularJS This is an off-site link.  Please review our Terms of Service for additional information.


(Ben Nadel) If you're coming from a jQuery background, you're probably used to calling .abort() on the AJAX (Asynchronous JavaScript and XML) response object (jqXHR). In AngularJS, things are a little bit more complicated. AngularJS don't expose the .abort() method; but, it does provide a way to abort an active AJAX request. It lets you define a promise object that will abort the underlying request if and when the promise value is resolved.

Read this article..







comments powered by Disqus