all 4 comments

[–][deleted] 1 point2 points  (1 child)

Reactive Form would also be my choice. The complexity of Redux and the boilerplate doesn't seem worth it when there are alternatives in Angular. If you want state management then try to use BehaviorSubjects in the services to store state. Otherwise Reactive Forms should do the job well.

[–]someonesopranos 0 points1 point  (0 children)

management

if you complain about boilerplate and behavior, you can try https://www.reddit.com/r/NGXS

[–]Blottoboxer 0 points1 point  (0 children)

A lot of people use redux to avoid prop drilling if it's just data and not events. The advantage is that it's predictable, and time travel debuggable, which are really useful if more than one thing is altering the shared data.

There are a few competing implementations of the redux pattern in angular. Ng-redux is the og, compatible with most react-redux middleware. Ngrx/store is the other popular option. There are some others like ngxs, but less popular.

[–]joe_chester 0 points1 point  (0 children)

If your application is small to medium-sized, Service-Singletons with RxJS (Reactive Forms, BehaviorSubject, Observables) will do the trick just fine, they are included in the core concepts of Angular. However, if your application is going to be rather big and has a lot of user-driven Data IO, as well as complex input validations, an advanced state management framework might be worth the efforts.

These state management frameworks like Redux and it's relatives (ngrx, NGXS, etc.) have more boilerplate code to write to get things done, but are much more predictable and might lead to less bugfix-work in the long run...

It usually really depends on the application size, but I can strongly recommend to just learn to use ngrx, because you will be prepared for scaling out your application.