File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ function $HttpProvider() {
231
231
*
232
232
* ```js
233
233
* // Simple GET request example :
234
- * $http({method: 'GET', url: ' /someUrl'} ).
234
+ * $http.get(' /someUrl').
235
235
* success(function(data, status, headers, config) {
236
236
* // this callback will be called asynchronously
237
237
* // when the response is available
@@ -244,7 +244,7 @@ function $HttpProvider() {
244
244
*
245
245
* ```js
246
246
* // Simple POST request example (passing data) :
247
- * $http({method: 'POST', url: ' /someUrl', data: {msg:'hello word!'} }).
247
+ * $http.post(' /someUrl', {msg:'hello word!'}).
248
248
* success(function(data, status, headers, config) {
249
249
* // this callback will be called asynchronously
250
250
* // when the response is available
You can’t perform that action at this time.
0 commit comments