Commit 9e2f8718 authored by Dave Methvin's avatar Dave Methvin

angularjs-perf: Fix the "mark all complete" checkbox

Ref #795
parent d09aa978
......@@ -85,9 +85,9 @@ todomvc.controller('TodoCtrl', function TodoCtrl($scope, $location, $filter, tod
$scope.markAll = function (completed) {
todos.forEach(function (todo) {
todo.completed = !completed;
todo.completed = completed;
});
$scope.remainingCount = completed ? todos.length : 0;
$scope.remainingCount = completed ? 0 : todos.length;
todoStorage.put(todos);
};
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment