DEV Community

Discussion on: Two Ways of Using Angular Services With the HttpClient

Collapse
 
codefinity profile image
Manav Misra

Many tuts only teach the pull approach, using Observable. I just started using BehaviorSubects and am wondering why it's not mentioned more.
I'm glad to see some reassurance here that I am not just doing things in a 'weird' way.
I'm wondering if there are any practical use cases where Observable and pull approach is better.

Collapse
 
juliandierkes profile image
Julian Dierkes

I guess the "pull" approch is easier to understand and is therefore teached first, but the more experience you gain the more upsides of the "push" approch you will find.