I have the following working Aurelia code:
total = 9000;
<div class="row pt-2">
<div class="col-10 text-right">Amount is</div>
<div class="col-2 text-right">${total}</div>
</div>
What I want to do is use the Numeral.js library in HTML to format the total variable from 9000 to 9000.00. This is what I have tried:
total = 9000;
<div class="row pt-2">
<div class="col-10 text-right">Amount is</div>
<div class="col-2 text-right">${numeral(${total}).format('0.00')}</div>
</div>
and the following:
total = 9000;
<div class="row pt-2">
<div class="col-10 text-right">Amount is</div>
<div class="col-2 text-right">numeral(${total}).format('0.00')</div>
</div>
but unfortunately, none have worked. I tried using the Numeral library in TypeScript and it works fine. I need this on the HTML though. I'm super responsive so don't hesitate to ask any questions.