ember-cli-numeral
ES6 accessible module for Numeral.js within your Ember applications.
Install
ember install ember-cli-numeral
Usage
; let string = ;// '1,000'
See the Numeral.js docs for general usage.
Including Numeral.js locales
To include all the Numeral.js locales definitions, you need to add the
following configuration to your ember-cli-build.js
.
let app = defaults numeral: includeLocales: 'en-gb' 'pl' ;
Then import locales to register them, and activate them:
;;; let string = numeral && ; numeral;let string2 = ; numeral;
Note: the "en" locale is loaded by default.
FastBoot compatibility
This addon is compatible with FastBoot out of the box.
License
ember-cli-numeral
shims is MIT Licensed.