How to cancel an $http request in AngularJS?

Given a Ajax request in AngularJS

$http.get("/backend/").success(callback);

what is the most effective way to cancel that request if another request is launched (same backend, different parameters for instance).

8 Answers
8

Leave a Comment