I'm using Angular2.Dart and I need to render currency symbols inside table cells. I have all the hex codes available for all the currencies I need to be able to display as strings in a Currency
class:
class Currency {
...
symbol = "$ ;" //Space is just there so it doesn't parse to $ for this example
...
So, in the template I want to do something like <td>{{myCurrency.symbol}}</td>
, and have that display the $, however its not the case as simply the string value is being displayed without any parsing, $#x24;
. How can I get the hex code to parse correctly and display the corresponding currency symbol?
Thanks a million.
I should also mention I have tried to use the CurrencyPipe
, however some of the more odd currencies, for example "Ghana Cedi", code="GHS", symbol="¢" with the CurrencyPipe, {{12.1 | currency:'GHS':true}}
displays GHS12.1
. I want to be able to display all the currency symbols correctly.