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

Commit 0252a98

Browse files
garethtIgorMinar
authored andcommitted
docs($http) Clarify how to specify JSONP callback.
Make clear that it is the name of the callback that should be `JSON_CALLBACK`, instead of the current vague description. Closes #8269
1 parent 1c15cdc commit 0252a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/http.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ function $HttpProvider() {
854854
* Shortcut method to perform `JSONP` request.
855855
*
856856
* @param {string} url Relative or absolute URL specifying the destination of the request.
857-
* Should contain `JSON_CALLBACK` string.
857+
* The name of the callback should be the string `JSON_CALLBACK`.
858858
* @param {Object=} config Optional configuration object
859859
* @returns {HttpPromise} Future object
860860
*/

0 commit comments

Comments
 (0)