NumberDirective
Number Directive
put ng1Number directive on an input (type=text) to allow only number characters (0-9) to be entered. The value bound to the model will be a number.
Grouping (integer number)
Using thousands separator (grouping).
Note that the value bound to the model is still a number without grouping characters.
Integer numbers
Decimal numbers
Using min/max validators
Using maxlength
Using min/max and maxlength
Using minFractionDigits/maxFractionDigits
Control the number of decimal places shown for decimal numbers.