Files
mixtape/zero.Backoffice.UI/app/directives/v-currency.ts
T
2021-12-29 11:53:36 +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.innerHTML = toCurrency(binding.value);
}
};