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

controlErrorsIgnore cannot be bound #106

Open
psenechal opened this issue Jun 26, 2023 · 0 comments
Open

controlErrorsIgnore cannot be bound #106

psenechal opened this issue Jun 26, 2023 · 0 comments

Comments

@psenechal
Copy link

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[X] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

When using controlErrorsIgnore, it cannot be bound...and using in conjunction with controlErrorsAnchor causes a compile error. When defining tags individually, this works great, however, when using a loop to create options in a radio group, there isn't a way to add logic so that the first option has controlErrorsAnchor and the remaining options have controlErrorsIgnore.

Expected behavior

It would be nice if I could use something like [controlErrorsIgnore]="i !== 0" where i is the index of the item in the loop.

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Currently I have to define 2 inputs with an ngIf checking the index. ngIf="i === 0" for the controlErrorsAnchor directive and ngIf="i !== 0" for the controlErrorsIgnore directive

Environment


Angular version: 15.2.9

Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [X] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: 18.14.0
- Platform:  Mac

Others:
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