In Angular Material Design 6, the (change) method was removed. I cant find how to replace the change method to execute code in the component when the user change selection
For:
1) mat-select (selectionChange)="myFunction()"
works in angular as:
sample.component.html
{{option}}
sample.component.ts
actions=['A','B','C'];
onChange() {
//Do something
}
2) Simple html select (change)="myFunction()"
works in angular as:
sample.component.html
sample.component.ts
onChange() {
//Do something
}