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

Bind MinDate and MaxDate validators to a FormControl #3

Closed
dirkkok101 opened this issue Jan 29, 2018 · 3 comments
Closed

Bind MinDate and MaxDate validators to a FormControl #3

dirkkok101 opened this issue Jan 29, 2018 · 3 comments

Comments

@dirkkok101
Copy link

Hi

Would it be possible to support binding Min and Max Date validators to another FormControl similar to the
EqualTo validator?

For example:
let maxDateControl = new FormControl('', Validators.required);
let minDateControl = new FormControl('', CustomValidators.maxDate(maxDateControl));

@rsaenen
Copy link
Owner

rsaenen commented Jan 30, 2018

Hi,
I will be released with the next version.
Feel free to contribute to the repository if you need this feat asap.

@rsaenen
Copy link
Owner

rsaenen commented Feb 8, 2018

I'am unable to publish a new version for now, see angular/cli#9549.
I won't publish without run tests.

@rsaenen
Copy link
Owner

rsaenen commented Feb 9, 2018

Released with 5.0.1

@rsaenen rsaenen closed this as completed Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants