Skip to content
Permalink
Browse files

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
  • Loading branch information
garetht authored and IgorMinar committed Jul 19, 2014
1 parent a54d460 commit f309c4ceba3ae68b0391c8cd1d93a439eaa17a51
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ng/http.js
@@ -782,7 +782,7 @@ function $HttpProvider() {
* Shortcut method to perform `JSONP` request.
*
* @param {string} url Relative or absolute URL specifying the destination of the request.
* Should contain `JSON_CALLBACK` string.
* The name of the callback should be the string `JSON_CALLBACK`.
* @param {Object=} config Optional configuration object
* @returns {HttpPromise} Future object
*/

0 comments on commit f309c4c

Please sign in to comment.
You can’t perform that action at this time.