Package Exports
- vue-currency-filter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-currency-filter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-currency-filter
Lightweight Vue 2 Currency Filter
Download
NPM :
npm install vue-currency-filterYarn :
yarn add vue-currency-filterSample Usage
Import in main.js :
import VueCurrencyFilter from 'vue-currency-filter'Use Plugins :
Vue.use(VueCurrencyFilter)Add Options :
Vue.use(VueCurrencyFilter, {symbol : '$'})Use in View :
<span>{{ 20000 | currency}}</span>Available Options
{
symbol: 'string (default : Rp)',
thousandsSeparator: 'string (default : .)',
fractionCount: 'number (default : 0)',
fractionSeparator: 'string (default: ",")',
symbolPosition: 'string (default: front)',
symbolSpacing: 'boolean'
}Hope will usefull for you all.
Contact Me :