<input type="text" (input)="onInputChange($event)">
Ts
onInputChange(event: Event): void { const inputElement = event.target as HTMLInputElement; const inputValue = inputElement.value; console.log(inputValue); }