Files
mixtape/zero.Backoffice.UI/app/directives/v-currency.ts
T
2021-12-06 16:18:58 +01:00

13 lines
211 B
TypeScript

import { toCurrency } from '../utils/numbers';
/**
* Outputs a currency
*/
export default (el, binding) =>
{
if (binding.value !== binding.oldValue)
{
el.innerText = toCurrency(binding.value);
}
};