DEV Community

Discussion on: Angular: The Single Rule To Get Better At RxJS

Collapse
christiankozalla profile image
Christian Kozalla

Starting with Angular and Rxjs I was struggling with exactly this concept. Mixing imperative and declarative code, being unsure when and where to subscribe..

I've read Josh's article earlier and I like the mental model comparing an observable stream to an assembly line 💡

What I'd like to take home from your article, David, are

  • Return observables from services
  • Process stream with rxjs operators inside service as much as possible
  • Subscribe to observable inside the template using the async pipe whenever possible

Thank you for these awesome articles👍

Collapse
daviddalbusco profile image
David Dal Busco Author

You read my mind Christian! Thank you for the summary, that's exactly what I tried to communicate 🙏.