Skip to content

A simple angular directive for selecting from world currencies

License

Notifications You must be signed in to change notification settings

Meldinoor/angular-currency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-currency

A simple bootstrap dropdown for selecting from world currencies

Usage

Make sure to include 'CurrencySelecter' as a dependency in your angular module.

To implement the selecter in your markup, use the following syntax:

<currency-selecter ng-model="myCurrency"></currency-selecter>

Options

Default Currency

The following syntax will make US Dollars your default currency (selected automatically)

<currency-selecter ng-model="myCurrency" default-currency="USD"></currency-selecter>

Preferred Currencies

Use preferred currencies to always display your preferred currencies at the top of the list

<currency-selecter ng-model="myCurrency" preferred-currencies="SEK,NOK,EUR"></currency-selecter>

Include/Exclude Currencies

Use include-currencies or exclude-currencies if you wish to specify explicitly which currencies to display or not to display in the list. Example:

<currency-selecter include-currencies="SEK,NOK,EUR,USD,GBP" preferred-currencies="SEK,NOK,EUR" default-currency="SEK" ng-model="myCurrency"></currency-selecter>

About

A simple angular directive for selecting from world currencies

Resources

License

Stars

Watchers

Forks

Packages

No packages published