We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3edfa79 commit b2ec345Copy full SHA for b2ec345
examples/angularjs/js/controllers/todoCtrl.js
@@ -23,10 +23,9 @@ angular.module('todomvc')
23
// Monitor the current route for changes and adjust the filter accordingly.
24
$scope.$on('$routeChangeSuccess', function () {
25
var status = $scope.status = $routeParams.status || '';
26
-
27
$scope.statusFilter = (status === 'active') ?
28
{ completed: false } : (status === 'completed') ?
29
- { completed: true } : null;
+ { completed: true } : {};
30
});
31
32
$scope.addTodo = function () {
0 commit comments