I have the following code:
HTML:
<select>
<option *ngFor="let item of items">{{item}}</option>
</select>
Some Angular service:
items = [
{name: "item1", type: "type1"},
{name: "item2", type: "type2"},
{name: "item3", type: "type2"}
];
And some filtering function, which filters an array by type and returns new array.
I haven't got problems with filtering by button like:
<button type="button" (click)="Filter('type2')"></button>
But I can't do it using dropdown.
UPD: Incorrect explanation. Here live demo. Need to filter array with (change) event at select tag using brandName