changhuixu / ngx-digit-only

An Angular directive to only allow [0-9] in the input box when typing, pasting or drag/dropping.
https://changhuixu.github.io/ngx-digit-only/
MIT License
161 stars 70 forks source link

Add exponent and negative values in the input #43

Closed midhunadarvin closed 3 years ago

midhunadarvin commented 3 years ago

Hi,

How can i add values like 1e-9 or -9 or 5e2 ? Also how can i add upper and lower limit to values like this?

changhuixu commented 3 years ago

In this case, it's better to use a form validator.