Answers for "input change event typescript angular"

0

angular input change event

<input type="text" [ngModel]="mymodel" (ngModelChange)="valuechange($event)" />
{{mymodel}}

valuechange(newValue) {
  mymodel = newValue;
  console.log(newValue)
}
Posted by: Guest on April-29-2021
-1

angular input change event datatype typescript

public onChange(event: Event): void {
  if ((event.target as HTMLInputElement).files && (event.target as HTMLInputElement).files.length) {
    const [file] = event.target.files;
  }
}
Posted by: Guest on October-30-2020

Code answers related to "input change event typescript angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language