<input type="checkbox" (ngModelChange)="myModel=$event" [ngModel]="mymodel">
<select [ngModel]="selectedItem" (ngModelChange)="onChange($event)">
onChange(newValue) {
console.log(newValue);
this.selectedItem = newValue; // don't forget to update the model here
// ... do other stuff here ...
}
<select [(ngModel)]="selectedItem" (ngModelChange)="onChange($event)">
<select [ngModel]="selectedItem" (ngModelChange)="onChange($event)">
<select [(ngModel)]="selectedItem" #item (change)="onChange(item.value)">
onChange(newValue) {
console.log(newValue);
this.selectedItem = newValue; // don't forget to update the model here
// ... do other stuff here ...
}