Exploring Angular (1.6.4) is a new adventure for me, and I have a task at hand to customize currency symbols across my webpage by configuring $locale
in this Angular application.
Currently, the code snippet looks like this:
{{myCtrl.getPrice() | currency : myCtrl.user.currency.symbol}} //returns $10
I aim to update the line as follows:
{{myCtrl.getPrice() | currency}}
To leverage the currency defined by $locale
. But how do I set $locale
? The available online documentation seems sparse on this topic.
I would appreciate any guidance as I find myself grappling with this challenge, thank you!