Angular ng model if value exists code example Example: ng model output only (ngModelChange)="onModelChange()"