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

Commit f309c4c

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 a54d460 commit f309c4c

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
@@ -782,7 +782,7 @@ function $HttpProvider() {
782782
* Shortcut method to perform `JSONP` request.
783783
*
784784
* @param {string} url Relative or absolute URL specifying the destination of the request.
785-
* Should contain `JSON_CALLBACK` string.
785+
* The name of the callback should be the string `JSON_CALLBACK`.
786786
* @param {Object=} config Optional configuration object
787787
* @returns {HttpPromise} Future object
788788
*/

0 commit comments

Comments
 (0)