Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kirandas82 opened this issue Mar 16, 2021 · 0 comments

Comments

@kirandas82
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant