From ed9edffcc381204650e750de526bd9539abd5931 Mon Sep 17 00:00:00 2001 From: Wes Alvaro Date: Tue, 28 Apr 2015 13:16:46 +0900 Subject: [PATCH] docs($http): Adds detail about param sorting. Parameters are sorted when added to the URL: https://github.com/angular/angular.js/blob/c8700f04fb6fb5dc21ac24de8665c0476d6db5ef/src/ng/http.js#L24 This is a very important detail, especially for testing. --- src/ng/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng/http.js b/src/ng/http.js index 1b295f9908b..b03b58c0097 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -689,7 +689,7 @@ function $HttpProvider() { * - **url** – `{string}` – Absolute or relative URL of the resource that is being requested. * - **params** – `{Object.}` – Map of strings or objects which will be turned * to `?key1=value1&key2=value2` after the url. If the value is not a string, it will be - * JSONified. + * JSONified. The keys will be sorted when appended to the URL. * - **data** – `{string|Object}` – Data to be sent as the request message data. * - **headers** – `{Object}` – Map of strings or functions which return strings representing * HTTP headers to send to the server. If the return value of a function is null, the