Pipe to format month names using Globalite.

Month number is zero-based (like JavaScript Date object).

{{ monthNumber | gmonth }} Uses the default month format, 'gregory' and current locale.
{{ monthNumber | gmonth:'short' }} Uses the month format 'short', 'gregory' calendar and current locale.
{{ monthNumber | gmonth:'long-islamic':'ar' }} Uses the month format 'long', 'islamic' calendar and the locale 'ar'.

Hierarchy

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: number
    • Optionalformat: string

    Returns null | string

  • Parameters

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

    Returns string

  • Parameters

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

    Returns null

  • Parameters

    Returns null | string

  • Parameters

    Returns string

  • Parameters

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

    Returns null | string

  • Parameters

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

    Returns null | string

  • Parameters

    • input: number
    • optionsFormat: string
    • locale: string

    Returns string