Here is the code snippet I am using to display the amount:
<td>{{transaction.amount}} {{transaction.currency}}</td>
Currently, the output looks like: 56030 USD
I would like the output to be formatted like this:
<td [ngSwitch]="transaction.currency">
<span *ngSwitchCase="'JPY'">/// Display 1000 JPY</span>
<span *ngSwitchCase="'USD'">/// Display 10.00 USD</span>
<span *ngSwitchDefault class="badge">/// Display 10.00 USD</span>
</td>
Any advice on how I can add the ".00" based on the currency?