Observables

One can subscribe to observables (don't forget to unsubscribe in ngOnDestroy) and get their values one by one, all at once, combined, reduced, transformed etc.

In angular templates use the async pipe to create ad hoc subscriptions: {{name$ | async}}.

See examples.

Observables vs subjects

Observables:

Subjects:

Creating observables using shorthands