We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f650ba commit e07ebdeCopy full SHA for e07ebde
src/ng/http.js
@@ -231,7 +231,7 @@ function $HttpProvider() {
231
*
232
* ```js
233
* // Simple GET request example :
234
- * $http({method: 'GET', url: '/someUrl'}).
+ * $http.get('/someUrl').
235
* success(function(data, status, headers, config) {
236
* // this callback will be called asynchronously
237
* // when the response is available
@@ -244,7 +244,7 @@ function $HttpProvider() {
244
245
246
* // Simple POST request example (passing data) :
247
- * $http({method: 'POST', url: '/someUrl', data:{msg:'hello word!'}}).
+ * $http.post('/someUrl', {msg:'hello word!'}).
248
249
250
0 commit comments