Skip to content

Answer: 64#1458

Open
tsironis13 wants to merge 2 commits intotomalaforge:mainfrom
tsironis13:forms-form-array-challenge
Open

Answer: 64#1458
tsironis13 wants to merge 2 commits intotomalaforge:mainfrom
tsironis13:forms-form-array-challenge

Conversation

@tsironis13
Copy link
Contributor

I have provided 2 different approaches to resolve this challenge.
The first one is based on FormValueControl to build the form elements and the second one uses a FieldTree typed signal input.

By using the FormValueControl I was forced to add a lot of boilerplate code to handle each element's touched, dirty states.
In addition, touched and dirty events are not triggered properly at the fieldTree level, so I added 2 more optional inputs to the app-validation component to show the errors correctly thus poluting the component's API significantly.

On the contrary, by using the input approach the code looks a way more cleaner and declarative.

@github-actions github-actions bot added answer answer contributor highly contributing to the project to be reviewed PR requests a review 64 labels Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

64 answer answer contributor highly contributing to the project to be reviewed PR requests a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant