Skip to content

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

Description

@kirandas82

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions