From e07ebded23b2308175119214ed754cd563f0967a Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 9 Oct 2014 12:00:20 -0700 Subject: [PATCH] docs($http): use .get and .post shortcut methods in examples --- src/ng/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/http.js b/src/ng/http.js index 671e9688..5adb4bef 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -231,7 +231,7 @@ function $HttpProvider() { * * ```js * // Simple GET request example : - * $http({method: 'GET', url: '/someUrl'}). + * $http.get('/someUrl'). * success(function(data, status, headers, config) { * // this callback will be called asynchronously * // when the response is available @@ -244,7 +244,7 @@ function $HttpProvider() { * * ```js * // Simple POST request example (passing data) : - * $http({method: 'POST', url: '/someUrl', data:{msg:'hello word!'}}). + * $http.post('/someUrl', {msg:'hello word!'}). * success(function(data, status, headers, config) { * // this callback will be called asynchronously * // when the response is available