Skip to content

Offer TypeScript format functions #219

Open
@json-derulo

Description

@json-derulo

Description
Angular offers TypeScript functions to make the logic of their i18n pipes available also in TypeScript code, i.e. the formatDate() function. It would be useful to have such functions available also for the pipes in this package.

Proposed Solution
For each pipe, there is a TypeScript function exposed, which performs the base logic of the pipe, i.e. intlFormatDate().

Alternatives considered
There might be workarounds like constructing or injecting the pipe, but this is not good practice and could cause issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions