ng-repeat :filter by single field

后端 未结 12 2303
栀梦
栀梦 2020-11-22 10:06

I have an array of products that I\'m repeating over using ng-repeat and am using

<
12条回答
  •  误落风尘
    2020-11-22 10:55

    If you want to filter on a grandchild (or deeper) of the given object, you can continue to build out your object hierarchy. For example, if you want to filter on 'thing.properties.title', you can do the following:

    You can also filter on multiple properties of an object just by adding them to your filter object:

提交回复
热议问题