DEV Community

Discussion on: Redux with Observable Stores in Angular

Collapse
 
webmarket7 profile image
Oleksandr Ryzhyk

Great article! I love the simplicity of this approach. But I wonder, why you used EventEmitter for emitting new actions instead of Subject? AFAIK usage of EventEmitter is discouraged by Angular team for anything except sharing events between components. Was there some good reason to use EventEmitter specifically in this case? Thank you!

Collapse
 
steveblue profile image
Stephen Belovarich

It’s been awhile since I looked at this but I think the rationale was exactly that, for sharing. If Subject works for you, go for it!