I use the AngularJS currency filter, and I am having trouble displaying the Euro sign correctly.
HTML:
{{ price.priceTotal | currency: myController.getPriceCurrency() }}
Controller:
getPriceCurrency() {
return `&
}
Note . In the above method, I simply return the code for the Euro symbol, but the currency returned by this method can be any, depending on the chosen currency.
The problem is that the currency symbol is not displayed correctly. It is displayed as € 50, for example, but I want it to be displayed as 50 euros. I tried to set the return in the getPriceCurrency method to the euro € sign directly, however it will display like ??? (three question marks) after code deployment.
Are there any other workarounds that I can do to correctly display the symbols of the euro and other currencies?
thank