Skip to content

Angular module with currency input directive (add commas as you type)

Notifications You must be signed in to change notification settings

CodySchaaf/CsCurrencyInput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CsCurrencyInput - (Tutorial)

Angular module with currency input directive (add commas as you type

##Usage

Check out a working example on Codepen the Gist

<input type="text" cs-currency-input ng-model="MainCtrl.amount" allow-negatives="true" class="input-s form-control money" placeholder="$"/>

The directive's name is cs-currency-input, pass in the optional allow-negatives="true" to allow negative currencies. Change the placeholder to by passing in cs-placeholder="*", or remove it with no-placeholder="true".

To see a step-by-step tutorial of the creation of this directive check out my blog

About

Angular module with currency input directive (add commas as you type)

Resources

Stars

Watchers

Forks

Packages

No packages published