I have a multi select dropdown in Angular. I want to filter it out based on name.
var users = [{
name: 'John',
email: 'johnson@mail.com',
age: 25,
address: 'USA'
},
{
name: 'Tom',
email: 'tom@mail.com',
age: 35,
address: 'England'
},
{
name: 'Mark',
email: 'mark@mail.com',
age: 28,
address: 'England'
}
];
How will i filter out John and Tom both if i select them in my multi select dropdown. Assuming i am getting this from the multiselect dropdown.
this.selectedItems =
[
{"id":1,"name":"John"},
{"id":2,"name":"Tom"}
];