AngularJS Money Directive to Validate Monetary Inputs

AngularJS Money Directive to Validate Monetary Inputs

AngularJS money directive to validate monetary inputs.This directive validates monetary inputs in “42.53” format (some additional work is needed for “32,00” European formats). Note that this is not designed to work with currency symbols. It largely behaves like Angular’s implementation of type="number".

  • Prevents entering non-numeric characters
  • Prevents entering the minus sign when min >= 0
  • Supports min and max like in <input type="number">

 

Leave a Reply