Minimal Angular Numeric Directive

Author: epeschier
Official Page: Go to website
Publish Date: February 8, 2015
License: MIT

Description:

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.

Features:

  • 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.

Preview:

Minimal Angular Numeric Directive


You Might Be Interested In:

Add Comment