RxJS observables

An RxJS Observable represents a stream of values emitted over time, such as HTTP requests or events. It is lazy: nothing happens before subscribing with subscribe. It can emit several values, then complete or fail. You must unsubscribe to avoid leaks.

Example

const flux$ = of(1, 2, 3)
flux$.subscribe(v => console.log(v))

Related concepts

The whole glossary