From 4a4d89c675baa1d259de8f9234cf834027cdc3e6 Mon Sep 17 00:00:00 2001 From: John Zhang Date: Tue, 29 Sep 2015 11:31:18 -0700 Subject: [PATCH] docs($httpProvider): Parameter Detail Fix useLegacyPromiseExtensions's boolean parameter was the other way around + default value is true --- src/ng/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/http.js b/src/ng/http.js index 12e2fd3020b6..e30d04e1ea71 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -345,9 +345,9 @@ function $HttpProvider() { * 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 false. If no value is specified, returns the current configured value. + * Defaults to true. If no value is specified, returns the current configured value. * - * @param {boolean=} value If true, `$http` will return a normal promise without the `success` and `error` methods. + * @param {boolean=} value If true, `$http` will return a promise with the deprecated legacy `success` and `error` methods. * * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining. * otherwise, returns the current configured value.