angular2-trim-directive
angular2-trim-directive copied to clipboard
If the input model value is set to 0, it is not showing in the input field
I have created the stackblitz link for showing the issue. https://stackblitz.com/edit/angular-trim-a27pve?file=src%2Fapp%2Fapp.component.ts
- I have added an input field with model name as cardOwnerName
<input trim="blur" (change)="onChange($event.target.value)" [(ngModel)]="model.cardOwnerName" #cardOwnerName="ngModel"> - I have set model.cardOwnerName value as 0
model: any = { cardOwnerName: 0 };but the zero value is not showing in the input field. If I give any value other than 0 it is showing.