UNPKG

ng-currency

Version:

Directive that works in conjunction with currency filter.

35 lines (31 loc) 651 B
export default class ngCurrencySettings { constructor() { this._defaults = { fraction: 2, hardCap: false, min: undefined, max: undefined, currencySymbol: undefined }; } /** * The default property values for 'ng-currency' */ get defaults() { return this._defaults; } set defaults(defaults) { this._defaults = defaults; } $get() { const provider = this; return { /** * The default property values for 'ng-currency' */ get defaults() { return provider.defaults; } }; } }