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
This commit is contained in:
garetht
2014-07-19 18:34:58 -04:00
committed by Igor Minar
parent 1c15cdc2d0
commit 0252a9889b

View File

@@ -854,7 +854,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
*/