This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
2.0.0
This release switches to track the Numeral.js 2.x branch. There are several breaking changes, both in Numeral.js itself as well as this library. If you need compatibility with Numeral.js 1.x, please use the latest angular-numeraljs 1.x release (code on the 1.x branch).
Features
- Upgrade to Numeral.js 2.x
- Fixed indentation to match EditorConfig settings
- Upgraded Karma & related test dependencies
Breaking Changes
- $numeraljsConfigProvider's interface has been modified to better match Numeral.js:
$numeraljsConfigProvider.setCurrentLanguage(lang)
has been renamed tolocale(locale)
$numeraljsConfigProvider.setDefaultFormat(format)
has been renamed todefaultFormat(format)
$numeraljsConfigProvider.setFormat(name, formatString)
has been renamed tonamedFormat(name, formatString)
$numeraljsConfigProvider.setLanguage(lang, def)
has been renamed toregister('locale', name, def)