angular bind input value code example
Example 1: onclick event in angular
(click)="myClickFunction($event)"
Example 2: what is ngmodel property binding
<input [(ngModel)]="username">
<p>Hello {{username}}!</p>
(click)="myClickFunction($event)"
<input [(ngModel)]="username">
<p>Hello {{username}}!</p>