angularjs ng-model set value from code code example Example: ng model output only (ngModelChange)="onModelChange()"