Rohan Ramani

Rohan Ramani

  • NA
  • 786
  • 144.7k

Add only numeric value in textbox angular 7

May 28 2019 4:25 AM
Hi All,
I need textbox which accepts only numeric value. And also it should be >0.
 
  1. <input type="number" required #creditLimit="ngModel" name="creditLimit" [class.is-invalid]="creditLimit.invalid && creditLimit.touched" class="form-control" [(ngModel)]="customerModel.creditLimit" placeholder="Enter Credit Limit" />  
 

Answers (1)