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

Custom Form Input Component #37

Open
psenechal opened this issue Apr 15, 2022 · 0 comments
Open

Custom Form Input Component #37

psenechal opened this issue Apr 15, 2022 · 0 comments

Comments

@psenechal
Copy link

I can't seem to figure out if ngx-validation-errors will work with custom form input components that use ControlValueAccessor.
Surrounding the tag with a tag doesn't work and the tag is empty without containing the error message. Surrounding or adding *ngxValidationErrors="form.get('name'); errors as errors" doesn't seem to do anything at all and errors is completely empty. I tried adding the ngxValidationErrorsField inside the custom form input component instead of on the tag, but that doesn't work because it can't find the AbstractControl to bind to.
It may be that it simply won't work for custom form input components, but I thought I would open an issue in case I'm just not seeing the solution.

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