From 085bee522f8744c5bb9ff48bf79b644366e75ad7 Mon Sep 17 00:00:00 2001 From: Asaf Katz Date: Thu, 5 Feb 2015 09:06:02 +0200 Subject: [PATCH] bindOne & bindAll syntax fix --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e79ccb2..18c7fe3 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,8 @@ app.controller('postCtrl', function ($scope, $routeParams, Post, Comment) { Comment.findAll(query); // My goodness this was easy - Post.bindOne($scope, 'post', $routeParams.id); - Comment.bindAll($scope, 'comments', query); + Post.bindOne($routeParams.id, $scope, 'post'); + Comment.bindAll(query, $scope, 'comments'); // Long form (same effect as above) $scope.$watch(function () {