有条件的orderBy并在angularJS ng-repeat中过滤?

时间:2015-07-29 05:33:39

标签: angularjs angularjs-ng-repeat ng-repeat angular-filters

.roster(ng-repeat="player in team.playerProfiles | orderBy: '-pRating' |filter: team.selected.playerId | limitTo: 1 " )

我意识到这不起作用。反正是否有条件检测team.selected.playerId是否存在并运行过滤器,如果它不存在,则执行orderBy?

0 个答案:

没有答案