Answers for "angular $http abort request"

0

angular $http abort request

var canceler = $q.defer();
$http.get('/someUrl', {timeout: canceler.promise}).success(successCallback);
// later...
canceler.resolve();  // Aborts the $http request if it isn't finished.
Posted by: Guest on February-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language