I understand that in Angular the following two lines are functionally the same
Property and Event binding
<input type="text" [value]="customerName" (input)="customerName= $event.target.value" />
Two-Way Data Binding
<input type="text" [(ngModel)]="customerName' />
What confuses me is how Angular knows, with Two-Way Data Binding, to bind to the input event of the input elementy rather than any of the other events that the input element supports?
In the first example the code is specifically defining which event to bind to (the "input" event), but not in the second example. How does Angular choose the event to bind to?
inputevent by default - docs