aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/cookbook
diff options
context:
space:
mode:
authorVojta Jina2011-08-10 15:59:55 +0200
committerIgor Minar2011-11-30 11:03:41 -0500
commit45f47ff6cd264dcd347e6df92c9ef39b0ae8aaba (patch)
tree3b18d13dca703ee7ce21f11729ff3db31a55cfb9 /docs/content/cookbook
parent0c8b35681e2ea9ce3ee6a188476f89be1336f1cb (diff)
downloadangular.js-45f47ff6cd264dcd347e6df92c9ef39b0ae8aaba.tar.bz2
fix($browser.xhr): change method "JSON" to "JSONP"
Breaks "JSON" xhr method is now called "JSONP"
Diffstat (limited to 'docs/content/cookbook')
-rw-r--r--docs/content/cookbook/buzz.ngdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/cookbook/buzz.ngdoc b/docs/content/cookbook/buzz.ngdoc
index c4e5ae37..ca6a22b4 100644
--- a/docs/content/cookbook/buzz.ngdoc
+++ b/docs/content/cookbook/buzz.ngdoc
@@ -18,8 +18,8 @@ to retrieve Buzz activity and comments.
this.Activity = $resource(
'https://www.googleapis.com/buzz/v1/activities/:userId/:visibility/:activityId/:comments',
{alt: 'json', callback: 'JSON_CALLBACK'},
- { get: {method: 'JSON', params: {visibility: '@self'}},
- replies: {method: 'JSON', params: {visibility: '@self', comments: '@comments'}}
+ { get: {method: 'JSONP', params: {visibility: '@self'}},
+ replies: {method: 'JSONP', params: {visibility: '@self', comments: '@comments'}}
});
}
BuzzController.prototype = {