ng-repeat :filter by single field

后端 未结 12 2119
栀梦
栀梦 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:47

    You must use filter:{color_name:by_colour} instead of

    filter:by_colour
    

    If you want to match with a single property of an object, then write that property instead of object, otherwise some other property will get match.

提交回复
热议问题