For more information on how to use the Currency Pipe, refer to the documentation available at Angular.io
To correctly display the currency code after the transaction.currency value, follow these steps:
:'code'
Example:
{{10000 | currency: 'USD':'code'}}
Ensure that your amount is in a numerical format and is separate from the currency for the functionality to work as intended. If your transaction.amount includes "$", you must remove it from the payload and send the correct currency separately.
Example: { amount: 10000, currency: 'USD' }
It's worth noting that in the US, USD is displayed at the beginning without a space, such as USD10,000.00, when using the built-in Angular solution. To have USD displayed with a space at the end instead, you will need to create a custom pipe and override the default output of the currency pipe.