Skip to content

New function getValidator #184

@muuvmuuv

Description

@muuvmuuv

Description

I would like to add additional logic to my from input but I need access to the minLenght validator params (the length). A function to receive a validator would be a good fit here I think.

Proposed solution

FormControl.getValidator(Validators.minLength)

Should return the validator or undefined.

Alternatives considered

Could not find any

Do you want to create a pull request?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions