Skip to content

A simple VueJs library that returns different currency badges.

Notifications You must be signed in to change notification settings

cjustinobi/vue-currency-symbol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-nigeria-states-lgas

NPM

npm version

A simple VueJs library that returns symbol of a country.

Installation

npm install vue-currency-symbol

Usage

In the component where you want use Nigeria states and Lgas

import StatesLgas from 'vue-currency-symbol/dist/vue-currency-symbol.esm.js'

Then register the component.

<script>

   ...

   import Vue from 'vue'
   
   import CurrencySymbol from 'vue-currency-symbol/dist/vue-currency-symbol.esm.js'
   
   Vue.use(CurrencySymbol)
   
   ...

</script>

Use currencySymbol(countryName) to get the corresponding country currency symbol

Note

Use as a value of v-html directive

Example

Adding <span v-html="currencySymbol('japan')"></span> to the element you want to use the symbol returns Japanese Yen symbol // ¥

About

A simple VueJs library that returns different currency badges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published