Answers for "angular to find ng-model updated"

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
3

what is ngmodel property binding

<input [(ngModel)]="username">

<p>Hello {{username}}!</p>
Posted by: Guest on October-13-2020

Browse Popular Code Answers by Language