Skip to content

Navigation Menu

Sign in
Sign up

Answer: 64 - #1458

Open
tsironis13 wants to merge 2 commits into
tomalaforge:main from
tsironis13:forms-form-array-challenge
Open

Answer: 64 #1458
tsironis13 wants to merge 2 commits into
tomalaforge:main from
tsironis13:forms-form-array-challenge

Conversation

@tsironis13

@tsironis13 tsironis13 commented Mar 17, 2026

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /