Pipe to format country names using Globalite.

{{ countryCode | gcountry }} Uses the default locale.
{{ countryCode | gcountry:'' }} Uses the default locale.
{{ countryCode | gcountry:'':'fr' }} Uses the locale 'fr'.

Hierarchy

  • BaseGlobalizePipe<string, never>
    • GlobalizeCountryPipe

Implements

  • PipeTransform

Constructors

Properties

changeDetector: ChangeDetectorRef = ...
localeService: LocaleService = ...

Methods

  • A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.

    Returns void

  • Parameters

    • input: undefined | null
    • Optionalformat: string
    • Optionallocale: string

    Returns null

  • Parameters

    • input: string
    • Optionalformat: string

    Returns null | string

  • Parameters

    • input: string
    • format: string
    • locale: string

    Returns string

  • Parameters

    • input: undefined | null
    • Optionaloptions: undefined
    • Optionallocale: string

    Returns null

  • Parameters

    • input: string
    • Optionaloptions: undefined

    Returns null | string

  • Parameters

    • input: string
    • options: never
    • locale: string

    Returns string

  • Parameters

    • input: Observable<undefined | null | string>
    • Optionaloptions: undefined
    • Optionallocale: string

    Returns null | string

  • Parameters

    • input: Observable<undefined | null | string>
    • Optionalformat: string
    • Optionallocale: string

    Returns null | string

  • Parameters

    • input: string
    • _: string
    • locale: string

    Returns string