Answers for "check if value is changed in select angular"

0

ngmodel change

<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 ...
}
Posted by: Guest on July-09-2020
0

ng model on change

<select [(ngModel)]="selectedItem" (ngModelChange)="onChange($event)">
Posted by: Guest on November-22-2020

Code answers related to "check if value is changed in select angular"

Browse Popular Code Answers by Language