<input #myInput (keyup)="0">
<p>{{myInput.value}}</p>
why that keyup event updates the myInput.value ? What the logic that makes this happen?
<input #myInput (keyup)="0">
<p>{{myInput.value}}</p>
why that keyup event updates the myInput.value ? What the logic that makes this happen?
You have to bind to an event so that the binding/screen is updated. Thus, (keyup)="0"
is a shortcut to update bindings on keyup.
See in the official docs: https://angular.io/guide/user-input
the #myInput creates a template reference and hence {{myInput.value}} gives the value of the input element