filterBy不适用于AngularJS对象内的数组

时间:2017-06-22 23:40:15

标签: angularjs

I have the following code:

我正在尝试使用一个条件同时过滤所有列。

 <tr ng-repeat="keyLegalEntity in keyLegalEntities | filterBy: ['gsCode','name','primaryContacts.kerberos','secondaryContacts.kerberos','additionalAttributes.cftcSwapDealer']:searchLE">
 <td style="text-align: center"><input type="checkbox" data-checklist-model="selectedkeyLegalEntities.keyLegalEntities" checklist-change="LEUpdate()" data-checklist-value="keyLegalEntity" checklist-comparator="compareFn" ng-disabled="!hasWriteEntitlement"></td>
 <td style="text-align: center">{{keyLegalEntity.gsCode}}</td>
 <td style="text-align: center">{{keyLegalEntity.name}}</td>
 <td style="text-align: center">{{formatPrimaryKerbs(keyLegalEntity)}}</td>
 <td style="text-align: center">{{formatSecondaryKerbs(keyLegalEntity)}}</td>
 <td style="text-align: center">{{keyLegalEntity.additionalAttributes.cftcSwapDealer}}</td>
                    </tr>

这是其中一个对象中的数据,我可以过滤gs.code和name但不能过滤所有其他字段

enter image description here

  [1]: https://i.stack.imgur.com/15QRT.png

0 个答案:

没有答案
相关问题