Skip to content

Commit b2ec345

Browse files
samcconemhoyer
authored andcommitted
Update angular filter to fix null filter.
Due to the changes in angular/angular.js@71fc3f4 angular/angular.js@d19504a xref angular/angular.js#11959
1 parent 3edfa79 commit b2ec345

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/angularjs/js/controllers/todoCtrl.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ angular.module('todomvc')
2323
// Monitor the current route for changes and adjust the filter accordingly.
2424
$scope.$on('$routeChangeSuccess', function () {
2525
var status = $scope.status = $routeParams.status || '';
26-
2726
$scope.statusFilter = (status === 'active') ?
2827
{ completed: false } : (status === 'completed') ?
29-
{ completed: true } : null;
28+
{ completed: true } : {};
3029
});
3130

3231
$scope.addTodo = function () {

0 commit comments

Comments
 (0)