add new method on $httpProvider to define which kind of Promises we like to use (normal vs. decorated with sucess / error)

This commit is contained in:
Michael Wittwer
2015-09-01 11:41:51 +02:00
parent a278148f0e
commit 32f803ab65
+8
View File
@@ -1452,6 +1452,14 @@ declare module angular {
interceptors: any[];
useApplyAsync(): boolean;
useApplyAsync(value: boolean): IHttpProvider;
/**
*
* @param {boolean=} value If true, `$http` will return a normal promise without the `success` and `error` methods.
* @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.
* otherwise, returns the current configured value.
*/
useLegacyPromiseExtensions(value:boolean) : boolean | IHttpProvider;
}
///////////////////////////////////////////////////////////////////////////