Filtering on object map rather than array in AngularJS

前端 未结 6 2113
伪装坚强ぢ
伪装坚强ぢ 2020-12-03 05:15

Given a controller with a $scope property that is an object with other properties rather than an array like below, how should I filter the ng-repeat set?

6条回答
  •  [愿得一人]
    2020-12-03 05:48

    Not an optimal solution but if you want something quick and dirty :

  • {{friend.name}} @ {{friend.phone}}
  • Or ng-if instead of ng-hide

提交回复
热议问题