angular-filter icon indicating copy to clipboard operation
angular-filter copied to clipboard

filterBy multiple values

Open duongtdvn opened this issue 8 years ago • 5 comments

Hi, is it possible to apply filterBy with multiple values eg:

ng-repeat="s.value as s.text for s in statuses | filterBy: ['value']: 2,3,4"

Thank you!

duongtdvn avatar Aug 28 '15 02:08 duongtdvn

I would like to have a filter like this, but with a bind-able array to filter. Would maybe require a distinct filter like (| filterValueIn: ['value']: [1,2,3])

s-ol avatar Oct 02 '15 12:10 s-ol

I'm looking for this too. +1

rkimaoui avatar Oct 13 '15 08:10 rkimaoui

@a8m is this somethign you want to add? I'm happy to submit a PR.

toddbranch avatar Nov 17 '15 17:11 toddbranch

It could be a nice feature to add, but imo it will make the API feel inconsistent. Because, the other filters not support that, and we want to stay aligned with the others. (which means we need support "function as an option" which may solve the problem too).

Let me know what do you think guys. cheers!

a8m avatar Nov 18 '15 08:11 a8m

Is this any progression? Really need this kind of implement!

banqhsia avatar Nov 30 '16 07:11 banqhsia