Skip to content Skip to sidebar Skip to footer

Cancelling $http Request Angularjs

Trying to cancel an $http request on a search input box but the prior requests don't seem to be getting aborted. I followed the example from other stack overflow questions. Here

Solution 1:

i think there might be something wrong with the version of angular js cause they have removed the timeout option for promise and you can now only give timeout in milliseconds but there is a work around for that, check this link http://www.bennadel.com/blog/2624-aborting-an-ajax-request-in-angularjs-using-httpi.htm


Post a Comment for "Cancelling $http Request Angularjs"