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

Commit cd49876

Browse files
linclarkbtford
authored andcommitted
docs($http): update shortcut method description
Update docs to reflect that $http no longer requires passing in an HTTP method, as changed in #6401.
1 parent 55a0bc4 commit cd49876

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ng/http.js

Lines changed: 2 additions & 3 deletions
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)