Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New function getValidator #184

Open
muuvmuuv opened this issue Oct 1, 2023 · 0 comments
Open

New function getValidator #184

muuvmuuv opened this issue Oct 1, 2023 · 0 comments

Comments

@muuvmuuv
Copy link

muuvmuuv commented Oct 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant