在我的模板中,我使用了ng-repeat="obj in list"。scope.filter$scope.filter["categories"].push("human");
如何在ng-repeat中使filter与数组$scope.filter["categories"]一起工作,并找到category对应于
我希望使用另一个线程下存储在firebase中的值对ngRepeat中的数组中的对象进行排序。见代码和图像。我目前正在使用以下代码,它不会出现错误,但它也不会根据投票的数量对我的对象排序:
ng-repeat="for in For | orderBy: '-dataVotes[for.ref].total'每个ID都是数组中相应对象的元素。我想根据总字段对数组进行<e