标签: loops angularjs
AngularJS中是否存在以下某种概念:对于字符串和布尔属性?
<li ng-repeat="person in people | filter:'person.isMale'">
答案 0 :(得分:1)
尝试
<li ng-repeat="person in people | filter:{isMale:true}">
或
<li ng-repeat="person in people | filter:{isMale:1}">
取决于您的数据