- Import the
alight_money.js
script in your page. For example:
<script src="alight_money.js"></script>
- Example:
<input type="text" name="field14" al-money="defaultMoney" >
- Define the number of decimals (default is 2):
<input type="text" name="field14" al-money="dec5" money-decimals="5">
- Extended example:
<input type="text" name="field14" al-money="custom1" money-decimals="1" money-decimal-delimiter="/" money-thousands-delimiter=" " money-currency="&:">
- Extended example:
<input type="text" name="field14" al-money2="custom1" money-decimals="1" money-decimal-delimiter="/" money-thousands-delimiter=" " money-currency="&:">
See more usage examples in the Demo page
Angular Light - http://angularlight.org/
Original directive for AngularJS 1x http://assisrafael.github.io/angular-input-masks/