angular2-trim-directive icon indicating copy to clipboard operation
angular2-trim-directive copied to clipboard

If the input model value is set to 0, it is not showing in the input field

Open kirandas82 opened this issue 4 years ago • 0 comments

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.

kirandas82 avatar Mar 16 '21 04:03 kirandas82