Code does not compile. Please fix the code.
<div> <label>Text</label> <input (input)="onInputText($event.target.value)" /></div>
I get following error:
src/app/app.component.html:3:45 - error TS2339: Property ‘value’ does not exist on type ‘EventTarget’.
3 <input (input)=“onInputText($event.target.value)” />
~~~~~
src/app/app.component.ts:5:16
5 templateUrl: ‘./app.component.html’,
~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AppComponent.