I am trying to filter a list of items using an array of values. So far I've successfully been able to filter numerous fields in a table, but I haven't been able to filter using numerous values within one column of the table. This plunker shows this filter object being used
$scope.filters = {
user:{
name:"John"
},
status:{
name: "Approved"
}
};
However, what I am trying to accomplish to generate a filtered list based off this filters object:
$scope.filters = {
user:{
name:"John"
},
status:{
name: ["Approved", "For Review"]
}
};
Basically I want a list of all Johns whose status name is either "Approved" or "For Review".
Is it possible to accomplish this using Angular's "filter" filter, or is this a job for a custom filter?