如何过滤Object中的一些元素?

时间:2017-02-21 11:26:00

标签: angularjs

我在filter中使用ng-repeat

<tr ng-repeat="item in filtered = (campaign.data.issues | filter:filters) | orderBy : 'created_at'">

filters是对象:

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

我尝试使用复杂的对象按每种状态进行排序:

 $scope.filters = [{status : "active"}, {status : "paused"}, {status : "finished"}];

但它不起作用

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

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

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

0 个答案:

没有答案
相关问题