Add eventHandlers/uploadEventHandlers properties to angular $http configuration object https://docs.angularjs.org/api/ng/service/$http#usage

This commit is contained in:
Jose Chiarino
2016-09-07 21:49:52 -07:00
parent ff50a0955f
commit 9af1c6884a
+10
View File
@@ -1411,6 +1411,16 @@ declare namespace angular {
* Absolute or relative URL of the resource that is being requested.
*/
url: string;
/**
* Event listeners to be bound to the XMLHttpRequest object.
* To bind events to the XMLHttpRequest upload object, use uploadEventHandlers. The handler will be called in the context of a $apply block.
*/
eventHandlers?: { [type: string]: EventListenerOrEventListenerObject };
/**
* Event listeners to be bound to the XMLHttpRequest upload object.
* To bind events to the XMLHttpRequest object, use eventHandlers. The handler will be called in the context of a $apply block.
*/
uploadEventHandlers?: { [type: string]: EventListenerOrEventListenerObject };
}
interface IHttpHeadersGetter {