diff options
Diffstat (limited to 'docs/content/cookbook')
| -rw-r--r-- | docs/content/cookbook/buzz.ngdoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/content/cookbook/buzz.ngdoc b/docs/content/cookbook/buzz.ngdoc index baed4646..00db35cf 100644 --- a/docs/content/cookbook/buzz.ngdoc +++ b/docs/content/cookbook/buzz.ngdoc @@ -21,12 +21,12 @@ to retrieve Buzz activity and comments. { get: {method: 'JSONP', params: {visibility: '@self'}}, replies: {method: 'JSONP', params: {visibility: '@self', comments: '@comments'}} }); - } - BuzzController.prototype = { - fetch: function() { + + $scope.fetch = function() { $scope.activities = $scope.Activity.get({userId:this.userId}); - }, - expandReplies: function(activity) { + } + + $scope.expandReplies = function(activity) { activity.replies = $scope.Activity.replies({userId: this.userId, activityId: activity.id}); } }; |
