Skip to content

Commit da700a9

Browse files
committed
Merge pull request #305 from asfktz/asfktz-patch-1
ReadMe bindOne & bindAll syntax fix
2 parents 945c80f + 085bee5 commit da700a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ app.controller('postCtrl', function ($scope, $routeParams, Post, Comment) {
7272
Comment.findAll(query);
7373

7474
// My goodness this was easy
75-
Post.bindOne($scope, 'post', $routeParams.id);
76-
Comment.bindAll($scope, 'comments', query);
75+
Post.bindOne($routeParams.id, $scope, 'post');
76+
Comment.bindAll(query, $scope, 'comments');
7777

7878
// Long form (same effect as above)
7979
$scope.$watch(function () {

0 commit comments

Comments
 (0)