ember-currency
v0.1.0
Published
An ember-cli addon for currency.js.
Downloads
15
Readme
Ember-currency
currency.js addon for Ember.
Usage
ember install ember-currency
ember g ember-currency
import currency from 'currency';
export default DS.Model.extend({
quantity: DS.attr('number'),
shareCost: DS.attr('number'),
value: function() {
return currency(this.get('shareCost')).multiply(this.get('quantity')).format();
}.property('quantity', 'shareCost'),
})
Development
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
Running Tests
ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.