Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 angular#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

Lines changed: 1 addition & 1 deletion
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)