isaacvitor / angular-currency-mask

Angular directive for adding commas and proper formatting to a currency input text field.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage:

  • Reference the script in your HTML
  • Add currencyMask as a dependency in your app.
var app = angular.module('demo', ['currencyMask']);
  • Add the currency-mask attribute to your text input.
<input type='text' ng-model='amount' currency-mask />

Note: Currently this only works if the input also uses ngModel.

About

Angular directive for adding commas and proper formatting to a currency input text field.