Rohan Ramani

Rohan Ramani

  • 1.3k
  • 629
  • 23.1k

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)