DEV Community

Discussion on: Angular Component Communication — Simple yet Powerful Way

Collapse
 
michaeljota profile image
Michael De Abreu

Maybe you could try NgRx for this cases. I think losing typechecking (because you can't check the actions or if you want to the combination of actions/payloads would probably end up the same way as NgRx manage them.

Collapse
 
mkdudeja profile image
Manish Kumar

Ngrx undoubtedly a great tool, but as the saying is, "Great power comes at some cost." Ngrx will cause lots of boilerplate code to be setup in terms of actions, reducers, effects for every feature.

Might not be good fit for small to mid-size apps. This post as the title says, "simple yet powerful way" tries to use the same principle for component communication without adding too much of code or additional library in the codebase and best suited for all size of projects.

Collapse
 
michaeljota profile image
Michael De Abreu

I don't think that if you need and event system the app is small to mid in size. Also, have you checked out NgRx lately? They have updated the tooling and the boilerplate has become minimal for most of things.