ngModel object creation code example
Example 1: what is ngmodel property binding
<input [(ngModel)]="username">
<p>Hello {{username}}!</p>
Example 2: ng model output only
(ngModelChange)="onModelChange()"
<input [(ngModel)]="username">
<p>Hello {{username}}!</p>
(ngModelChange)="onModelChange()"