$httpProvider.useLegacyPromiseExtensions()

useLegacyPromiseExtensions([value]);

Configure $http service to return promises without the shorthand methods success and error. This should be used to make sure that applications work without these methods.

Defaults to true. If no value is specified, returns the current configured value.

Parameters

Param Type Details
value
(optional)
boolean

If true, $http will return a promise with the deprecated legacy success and error methods.

Returns

booleanObject

If a value is specified, returns the $httpProvider for chaining. otherwise, returns the current configured value.

doc_AngularJS
2016-03-29 16:10:25
Comments
Leave a Comment

Please login to continue.