{ "id": "api/common/getCurrencySymbol", "title": "getCurrencySymbol", "contents": "\n\n
\n
\n
\n \n API > @angular/common\n
\n \n
\n \n
\n

getCurrencySymbollink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Retrieves the currency symbol for a given currency code.

\n\n

See more...

\n
\n \n \n \n\n
\n \n\n getCurrencySymbol(code: string, format: \"wide\" | \"narrow\", locale: string = 'en'): string\n\n \n\n
Parameters
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n code\n string\n

The currency code.

\n\n
\n \n format\n \"wide\" | \"narrow\"\n

The format, wide or narrow.

\n\n
\n \n locale\n string\n

A locale code for the locale format rules to use.

\n

Optional. Default is 'en'.

\n\n
\n\n \n
Returns
\n

string: The symbol, or the currency code if no symbol is available.

\n\n \n\n\n \n\n \n
\n\n\n \n
\n

See alsolink

\n \n
\n\n\n \n\n
\n

Descriptionlink

\n

For example, for the default en-US locale, the code USD can\nbe represented by the narrow symbol $ or the wide symbol US$.

\n\n \n
\n\n\n\n \n\n\n
\n
\n\n\n" }