getCurrencySymbol

function

Returns the currency symbol for a given currency code, or the code if no symbol available (e.g.: format narrow = $, format wide = US$, code = USD) If no locale is provided, it uses the locale "en" by default

getCurrencySymbol(code: string, format: 'wide' | 'narrow', locale: 'en' = 'en'): string

Parameters

code

Type: string.

format

Type: 'wide' | 'narrow'.

locale

Type: 'en'.

Optional. Default is 'en'.

Returns

string

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/common/getCurrencySymbol