diff --git a/labs/architecture-examples/firebase-angular/js/app.js b/labs/architecture-examples/firebase-angular/js/app.js index c6e6d29d45..a7ef03de0f 100644 --- a/labs/architecture-examples/firebase-angular/js/app.js +++ b/labs/architecture-examples/firebase-angular/js/app.js @@ -15,13 +15,17 @@ todomvc.filter('todoFilter', function ($location) { angular.forEach(input, function (todo, id) { var path = $location.path(); if (path === '/active') { - if (todo.completed === false) filtered[id] = todo; + if (!todo.completed) { + filtered[id] = todo; + } } else if (path === '/completed') { - if (todo.completed === true) filtered[id] = todo; + if (todo.completed) { + filtered[id] = todo; + } } else { filtered[id] = todo; } }); return filtered; - } -}); \ No newline at end of file + }; +});