Can anyone explain why when you click on the checkbox filter is triggered? What is relevant in this comparison checkbox to the filter?
angular.module('App.filters', []).filter('dummyFF', [ function() { return function(input, a) { console.log(input, a); return input; }; } ]); var app = angular.module('plunker', ['App.filters']); app.controller('MainCtrl', function($scope) { $scope.name = 'World'; $scope.cars = [{ model: '316', make: 'Bmw' }, { model: '520', make: 'Bmw' }, { model: 'Fiesta', make: 'Ford' }, { model: 'Focus', make: 'Ford' }, { model: 'Clio', make: 'Renault' }, { model: 'Toledo', make: 'Seat' }, { model: 'Leon', make: 'Seat' }, { model: 'Insignia', make: 'Opel' }, { model: 'Astra', make: 'Opel' }, { model: 'Corsa', make: 'Opel' }]; }); <!DOCTYPE html> <html ng-app="plunker"> <head> <meta charset="utf-8" /> <title>AngularJS Plunker</title> <script> document.write('<base href="' + document.location + '" />'); </script> <link rel="stylesheet" href="style.css" /> <script data-require="angular.js@1.2.x" src="https://code.angularjs.org/1.2.25/angular.js" data-semver="1.2.25"></script> <script src="app.js"></script> </head> <body ng-controller="MainCtrl"> <p>Hello {{name}}!</p> <div ng-repeat="car in cars | dummyFF:{s:car.make}">{{car.make}}</div> <input type="checkbox" ng-model="useMakesgg[$index]" ng-checked="true" /> </body> </html>