Rohan Ramani

Rohan Ramani

  • 1.3k
  • 603
  • 13.4k

Amount validation pattern in Angular 7

Jun 18 2019 3:36 AM
Hi All,
I have one field for amount. It will take only positive value and greater than 0.
So, I need pattern validation for angular 7.  
  1. <input type="number" required #itemAmount="ngModel" name="itemAmount" [class.is-invalid]="itemAmount.invalid && itemAmount.touched" class="form-control" [(ngModel)]="appModel.itemAmount" placeholder="Approval Limit" min="1"/>  

Answers (1)