I need to call a function in case there is a change in the value of mat-select
.
I have been calling that function on (click)
added to mat-option.
But if we just use the keyboard to fill up the form, the function is never called(Understandably).
Is there any way I can call the function on any change? onChange, change events don't appear to work.
I don't have ngModel
on this form-field
Update:
selectionChange
works for single select drop-downs but not for multi-select
drop-downs and mat-autocomplete
.Is there a way this can be achieved?
Multi Select Example: multi-select-stackblitz
Update 2: onSelectionChange for multiple and autocomplete works.multi-autocomplete