Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 3a8d135

Browse files
johnz133Narretz
authored andcommitted
docs($httpProvider): fix description of useLegacyPromiseExtensions
useLegacyPromiseExtensions's default value is true, and the legacy methods exist when it is set to true. Closes #12974
1 parent f9387c6 commit 3a8d135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/ng/http.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@ function $HttpProvider() {
345345
* Configure `$http` service to return promises without the shorthand methods `success` and `error`.
346346
* This should be used to make sure that applications work without these methods.
347347
*
348-
* Defaults to false. If no value is specified, returns the current configured value.
348+
* Defaults to true. If no value is specified, returns the current configured value.
349349
*
350-
* @param {boolean=} value If true, `$http` will return a normal promise without the `success` and `error` methods.
350+
* @param {boolean=} value If true, `$http` will return a promise with the deprecated legacy `success` and `error` methods.
351351
*
352352
* @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.
353353
* otherwise, returns the current configured value.

0 commit comments

Comments
 (0)