3 ms·
You can pass a promise into an $http request as a parameter. If you hold on to this promise and resolve it before the request returns, it cancels the request.
by bengarvey 12y ago
You can pass a promise into an $http request as a parameter. If you hold on to this promise and resolve it before the request returns, it cancels the request.
https://docs.angularjs.org/api/ng/service/$http https://docs.angularjs.org/api/ng/service/$http