Skip to content

Commit 0b554bc

Browse files
committedMar 14, 2014
docs($http): update shortcut method description
Update docs to reflect that $http no longer requires passing in an HTTP method, as changed in angular#6401.
1 parent 79592ce commit 0b554bc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/ng/http.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,8 @@ function $HttpProvider() {
236236
*
237237
* # Shortcut methods
238238
*
239-
* Since all invocations of the $http service require passing in an HTTP method and URL, and
240-
* POST/PUT requests require request data to be provided as well, shortcut methods
241-
* were created:
239+
* Shortcut methods are also available. All shortcut methods require passing in the URL, and
240+
* request data must be passed in for POST/PUT requests.
242241
*
243242
* ```js
244243
* $http.get('/someUrl').success(successCallback);

0 commit comments

Comments
 (0)