How to filter multiple values (OR operation) in angularJS

前端 未结 20 1201
清酒与你
清酒与你 2020-11-22 10:01

I want to use the filter in angular and want to filter for multiple values, if it has either one of the values then it should be displayed.

I have for

20条回答
  •  庸人自扰
    2020-11-22 10:39

    Lets assume you have two array, one for movie and one for genre

    Just use the filter as: filter:{genres: genres.type}

    Here genres being the array and type has value for genre

提交回复
热议问题