你的模型:
{"cars":
[
{"v":"m","n":"Mini","c":false},
{"v":"c","n":"Corvette","c":true},
{"v":"b","n":"BMW","c":true},
{"v":"l","n":"Lamborghini","c":true},
{"v":"f","n":"Ferrari","c":false}
]
}
你只想检查:
$scope.brands = $filter('filter')($scope.viewModel, {c: true});
见http://plnkr.co/edit/PnABre?p=preview