1
Answer

Add only numeric value in textbox angular 7

Photo of Rohan Ramani

Rohan Ramani

6y
617
1
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)