Angularjs 如何按对象中的某些元素进行过滤?

Angularjs 如何按对象中的某些元素进行过滤?,angularjs,Angularjs,我在ng repeat中使用filter: <tr ng-repeat="item in filtered = (campaign.data.issues | filter:filters) | orderBy : 'created_at'"> 我尝试使用复杂对象按每个状态进行排序: $scope.filters = [{status : "active"}, {status : "paused"}, {status : "finished"}]; 但它不起作用 我知道使用登录

我在
ng repeat
中使用
filter

<tr ng-repeat="item in filtered = (campaign.data.issues | filter:filters) | orderBy : 'created_at'">
我尝试使用复杂对象按每个状态进行排序:

 $scope.filters = [{status : "active"}, {status : "paused"}, {status : "finished"}];
但它不起作用

我知道使用登录否定的简单解决方案:

$scope.filters = {status : !"active"};

但是我不知道如何在过滤器中使用否定对象

我不明白您到底想实现什么如果您试图按属性状态过滤数组,为什么不将status属性传递给过滤器,而不是使用完整对象?应该是这样的
$scope.filters = {status : !"active"};