skip to Main Content

Reactjs – How to acheive react onchange event in angular with ngModelChange

html: <mat-form-field appearance="outline"class="inputBox"> <input matInput name="total" placeholder="0.00" [ngModel]="total" (ngModelChange)="handleOnChange('total', $event)" /> </mat-form-field> TS: public handleOnChange = (field, e) => { console.log("hell", field) this.total=90 } the value of this.total should remain constant at 90 after any change event triggers the handleOnChange…

VIEW QUESTION
Back To Top
Search