Pipe to format day names using Globalite.

{{ dayNumber | gday }} Uses the default day format and current locale.
{{ dayNumber | gday:'short' }} Uses the day format 'short' and current locale.
{{ dayNumber | gday:'long':'fr' }} Uses the day format 'long' and the locale 'fr'.

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: WeekdayDisplay
    • Optionallocale: string

    Returns null

  • Parameters

    Returns null | string

  • Parameters

    Returns string

  • Parameters

    • input: Observable<undefined | null | number>
    • Optionaloptions: WeekdayDisplay
    • 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