I am trying to filter a list of elements using an array of values. So far, I have managed to filter multiple fields in a table, but I have not been able to filter using multiple values in one column of the table. This plunker shows that this filter object is being used.
$scope.filters = {
user:{
name:"John"
},
status:{
name: "Approved"
}
};
However, what I'm trying to accomplish is to create a filtered list based on this filter 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 do this using the Angular filter filter, "or is this a job for a custom filter?
source
share