我正在过滤数组
$filter('filter')($scope.model.data, {dataType: term });
但是如何进行反向过滤 我想从显示
中排除一些数据$filter('filter')($scope.model.data, {dataType: 'wrongtype' }); // Exclude this type
像$filter('excludefilter')($scope.model.data, {dataType: 'wrongtype' })
请建议
答案 0 :(得分:3)
http://jsbin.com/jocane/3/edit?html,js,output
$scope.filterd = $filter('filter')($scope.allMyObjects, {name: '!rike' });