<mat-form-field appearance="fill">
<mat-select>
<mat-option></mat-option>
<mat-option
*ngFor="let filterItem of itemsShop.filterItems"
[value]="filterItem"
(click)="onSelectValue()"
>
{{ filterItem.name }}
</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field appearance="fill">
<mat-select>
<mat-option></mat-option>
<mat-option
*ngFor="let filterItem of itemsShop.filterItems"
[value]="filterItem"
(click)="onSelectValue()"
>
{{ filterItem.name }}
</mat-option>
</mat-select>
</mat-form-field>
onSelectValue(val1: string, val2: string){
let obj = {
firstValue: val1,
secondValue: val2,
}
return obj
}
<select onchange="onSelectValue(this.options[this.selectedIndex])">
<option value="AAA">val1</option>
<option value="BBB">val2</option>
<option value="ccc">val3</option>
<option value="DDD">val4</option>
</select>
function onSelectValue(opt) {
alert(opt.value); /* e.g. DDD */
alert(opt.text); /* e.g. Rome */
}