Skip to content

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

Notifications You must be signed in to change notification settings

adamalbrecht/angular-currency-mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Packages

No packages published