SIGNALS can make Angular "REACTIVE" forms more reactive

SIGNALS can make Angular "REACTIVE" forms more reactive

Joshua Morony

6 месяцев назад

15,819 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@lertis_m
@lertis_m - 01.02.2024 23:59

Is that gonna work with ControlValueAccesor?

Ответить
@sulaimantriarjo8097
@sulaimantriarjo8097 - 01.02.2024 05:50

way to go Josh, I am still confused with the effect tho. does it execute base on the squence we declare in it?

Ответить
@markojozic3944
@markojozic3944 - 01.02.2024 02:25

That's all cool and interesting but I think you miss the point of reactive forms.
You kinda abstract the form-submission away and let your state manage code which by nature does not need declarative behaviour ... your form-submission is always imperative

Now what you get as a response you might want react to declarative but I don't see how you make this easier because you basically just smash one abstraction on top of another one and now developers have to deal with both ... reactive forms already manage the state of your form and its formcontrols declarative so I don't really see the merit in this tool except that it is cool

Ответить
@AlainBoudard
@AlainBoudard - 01.02.2024 00:00

I like the approach here. I also feel like there's work to be done to reach a state of things that would be beginner friendly, or if not beginner, not a huge expert.
I see the current state of Angular like a transition, and I enjoy these experiments.
Thanks Josh

Ответить
@nomiscph
@nomiscph - 31.01.2024 22:39

Personal opinion this does not really feel cleaner :)

Ответить
@WanderingCrow
@WanderingCrow - 31.01.2024 21:54

Forms are still a headache for me to this day. I'm glad to know that signals could potentially help alleviate some of the annoyance... Though I'm starting more and more to look towards template-driven forms, which seem to scale better than what people tend to say, I feel

Ответить
@robrabbit8288
@robrabbit8288 - 31.01.2024 20:29

If you didn't know: In generel you can wrap any code which sets signals with the 'untracked' function.

Ответить
@wolfisraging
@wolfisraging - 31.01.2024 18:35

Google, please considering hiring Joshua fulltime!

Ответить
@goetzrobin
@goetzrobin - 31.01.2024 18:21

Great video Josh! You would love the work Tim Deschryver has done with ng-signal-forms! It's built entirely on signals and ngModel, which means you get all what's beautiful this added layer on top of reactive form, without having to deal with reactive forms :D Validators that are disabled/enabled based on form state, multi page forms driven by a single signal form, debounced inputs, async validation, etc. Would love for you to give it a try and to hear your thoughts on it!

Ответить
@koempf
@koempf - 31.01.2024 18:09

should we not do this with the new NgrxSignalStore ?

Ответить
@ratg97
@ratg97 - 31.01.2024 16:42

i think we dont need to use signals on forms

Ответить
@julienwickramatunga7338
@julienwickramatunga7338 - 31.01.2024 16:05

It's very interesting to see how your approach evolves from a video to another.
It teaches us how you analyse a given problem and find a suitable solution, while keeping in mind what could be improved.
Thank you for your dedication 👍

Ответить
@zertyfield
@zertyfield - 31.01.2024 15:06

What do you think of Brecht Billiets approach using Signals and template driven forms instead?

Ответить
@hefesto706
@hefesto706 - 31.01.2024 14:19

Thanks for the content, are you planning any update of your angular course soon?

Ответить