DEV Community

[Comment from a deleted post]
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

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