I want to implement the following bootstrap select in Angular Material. How do I implement the change event shown here in bootstrap?
<select (change)="sortByProducts($event.target.value)">
<option *ngFor="let filter of filters" [value]="filter.id">
{{filter.title}}
</option>
</select>
How do I add the change event to material that calls the sortByProducts function as done in the code segment shown above?
<mat-form-field>
<mat-select>
<mat-option *ngFor="let filter of filters" [value]="filter.id">
{{filter.title}}
</mat-option>
</mat-select>
</mat-form-field>
<mat-select (change)="sortByProducts">withsortByProducts(event)in your ts file ?