Rohan Ramani

Rohan Ramani

  • 1.3k
  • 687
  • 29.8k

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" []="itemAmount.invalid && itemAmount.touched" class="form-control" [(ngModel)]="appModel.itemAmount" placeholder="Approval Limit" min="1"/>  

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (1)