From 107d226ae253aaf1ee15b7a92ca6e75895dbd270 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 12 Sep 2013 09:53:53 -0500 Subject: [PATCH] Fix to toderp --- example/toderp/index.html | 4 ++-- example/toderp/js/toderp.js | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/example/toderp/index.html b/example/toderp/index.html index 607bd78261..c9b4269213 100644 --- a/example/toderp/index.html +++ b/example/toderp/index.html @@ -95,9 +95,9 @@
diff --git a/example/toderp/js/toderp.js b/example/toderp/js/toderp.js index 6d2a27b147..33b60026a1 100644 --- a/example/toderp/js/toderp.js +++ b/example/toderp/js/toderp.js @@ -87,8 +87,9 @@ angular.module('toderp', ['firebase', 'ngRoute', 'ngAnimate']) }) .controller('TasksCtrl', function($scope, angularFire, FIREBASE_URL) { - var taskRef = new Firebase(FIREBASE_URL + '/tasks'); - $scope.tasks = angularFire(taskRef, $scope, 'tasks'); + var taskRef = new Firebase(FIREBASE_URL + '/todos'); + $scope.todos = []; + angularFire(taskRef, $scope, 'todos'); $scope.addTask = function(task) { var t = {}; t = angular.extend({ @@ -96,7 +97,7 @@ angular.module('toderp', ['firebase', 'ngRoute', 'ngAnimate']) }, task); console.log("Adding task:", t); - $scope.tasks.push(t); + $scope.todos.push(t); $scope.task = {}; };