Minimal Angular Numeric Directive

Views Total:80 views
Official Page:Go to website
Publish Date:February 8, 2015


This angular directive prevents the user from entering non-numeric values. Capable of minimizing and maximizing values, formatting to decimal precision and thousand separators and limiting number of characters.


  • There are checks on min and max values. When the value falls below the minumum the value is set to the minumum value. When the value exceeds the maxiumum, the value is set to the maximum.
  • Formatting is done on the blur event; thousand separator and decimal are based on the current Angular locale.
  • The number of decimals can be set.


Minimal Angular Numeric Directive

You Might Be Interested In:

Add Comment