getLocaleCurrencyCode
From Get docs
< @angular/commonAngular/docs/11/api/common/getlocalecurrencycode
getLocaleCurrencyCode
function
Retrieves the default currency code for the given locale.
getLocaleCurrencyCode(locale: string): string | null
Parameters
locale
|
string
|
The code of the locale whose currency code we want. |
Returns
string | null
: The code of the default currency for the given locale.
Description
The default is defined as the first currency which is still in use.
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/common/getLocaleCurrencyCode