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

feat: create form validity directive #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samrichardsontylertech
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added: N
  • Docs have been added / updated: Y (example app)
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? Y

Describe the new behavior?

Closes #1

Created FormValidityDirective to observe a form control's validity and the presence of a required validator and set the corresponding properties on an element.

Additional information

The directive receives a form control through a forgeFormControl input property because NgControl was too difficult to implement seamlessly. I intend to create a base class implementing this property and host it in the Angular core library to allow future directives to receive form controls in the same way.

@samrichardsontylertech samrichardsontylertech added the enhancement New feature or request label May 20, 2022
@samrichardsontylertech samrichardsontylertech requested a review from a team as a code owner May 20, 2022 19:58
@github-actions github-actions bot added the minor Increment the minor version when merged label May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor Increment the minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create directive to handle display of form validity
1 participant