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

Add method to check for a validator #48

Merged

Conversation

crapStone
Copy link
Contributor

This PR adds methods to both the FormGroup and FormField to check if a specific Validator exists. The implementation is inspired by the same methods of the Angular FormControl (https://github.com/angular/angular/blob/c5ce302e0b0667aa7522f80a741241a116abf168/packages/forms/src/validators.ts#L740).

Copy link
Owner

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks @crapStone !

@timdeschryver timdeschryver merged commit b8e2153 into timdeschryver:main Nov 7, 2024
2 checks passed
Copy link

github-actions bot commented Nov 7, 2024

🎉 This PR is included in version 1.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@crapStone crapStone deleted the feature/add_has_validator branch November 7, 2024 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants