Files
mixtape/zero.Backoffice.UI/app/directives/v-currency.ts
T

13 lines
211 B
TypeScript
Raw Normal View History

2021-12-06 16:18:58 +01:00
import { toCurrency } from '../utils/numbers';
/**
* Outputs a currency
*/
export default (el, binding) =>
{
if (binding.value !== binding.oldValue)
{
2021-12-29 11:53:36 +01:00
el.innerHTML = toCurrency(binding.value);
2021-12-06 16:18:58 +01:00
}
};