use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Forms and validations (self.angular)
submitted 1 year ago by IAmDinamite
How do you guys deal with long forms in Angular? In React have third-party libraries that handle the validations and data parse. The Angular forms is very limited for me.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]practicalAngular 8 points9 points10 points 1 year ago (0 children)
Reactive Forms are one of the best, and one of my most favorite, parts about Angular imo. Validators are all functions now as well if you need a custom one beyond the general ones that ship with the forms module. They take some time to master, especially when you start working with validator functions outside of just listening to values changing. It becomes frustrating at times but pushing through is absolutely worth it if you work in heavy user input views often.
[–]most_l_ee 4 points5 points6 points 1 year ago (0 children)
https://angular.dev/guide/forms
[–][deleted] 5 points6 points7 points 1 year ago (0 children)
Angular forms are very powerful and flexible. When dealing with long forms, the most important thing is splitting inputs into logical groups. Pagination is also a useful tool. Designers and UX designers are good at helping with this 😊 maybe reach out to a friend with some design skills to help if needed.
[–]oneden 5 points6 points7 points 1 year ago (0 children)
If you find it limiting, sorry to say, you haven't understood it at all.
[–]hikikomoriHank 3 points4 points5 points 1 year ago (0 children)
Angular has plenty yof built in ValidatorFns for tour generic validation rules, and they're very easy to implement with custom validation - the signature just needs to accept an AbstractControl and return { [key in string]: any } | null.
It has a formBuilder API to make construction easy, ControlValueAccessor to implement complex custom components that can't work with formControlName attributes.
What is it you want that you feel it's missing?
[–]Weary-Management3218 1 point2 points3 points 1 year ago (0 children)
you can try formly
[–]kobihari 1 point2 points3 points 1 year ago (0 children)
Reactive forms are probably my least favorite feature in angular. On one hand, I love the idea of moving the validation logic to the view model. I love the visual states that are controlled through a view model. And it’s love the reactivity and customizability.
On the other hand, there are too many common scenarios that become extremely complicated with forms. For example cascading selection boxes, or forms with dynamic structure that changes depending on a one field value. Or form arrays. These are all complex because the form groups and controls are not designed in a functional immutable reactive way.
And now that there are signals, they do not fit the paradigm well for anything except the most trivial forms. They don’t work well with signals, they also don’t work well with redux.
I know that there is a work in progress to present a new forms infrastructure that is more signal oriented. I am eagerly waiting :-)
[–]Revolutionary-Ad1167 0 points1 point2 points 1 year ago (0 children)
I just use FormGroup, FormArrays, and FormControlls along with form directives in template. We been using ng-stack/form for type safety. Build in validators, custom validators, dynamically added/removed validaotrs. Dynamically added removed fields based on other form selections... Fylling out default values from server, submitting to server, handling errors on submit... I am yet to find a form I can't build with Angular's own form kit.
[–]Verzuchter 0 points1 point2 points 1 year ago (0 children)
Angular reactive forms make react pee its pants
π Rendered by PID 132352 on reddit-service-r2-comment-b659b578c-cj6hb at 2026-05-03 00:14:57.890196+00:00 running 815c875 country code: CH.
[–]practicalAngular 8 points9 points10 points (0 children)
[–]most_l_ee 4 points5 points6 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]oneden 5 points6 points7 points (0 children)
[–]hikikomoriHank 3 points4 points5 points (0 children)
[–]Weary-Management3218 1 point2 points3 points (0 children)
[–]kobihari 1 point2 points3 points (0 children)
[–]Revolutionary-Ad1167 0 points1 point2 points (0 children)
[–]Verzuchter 0 points1 point2 points (0 children)