ng-model angularjs code example
Example 1: new model angular
ng generate class hero --type=model
Example 2: ng model output only
(ngModelChange)="onModelChange()"
ng generate class hero --type=model
(ngModelChange)="onModelChange()"