RxJS is a library for composing asynchronous and event-based programs by using observable sequences. It provides one core type “observable”.
Essential concepts in RXJS:
- Observable: It is an idea of callable value or collection of future events.
- Observer: It is a collection of callbacks that is happening from Observable. The observer knows how to listen to it.
- Subscription: It is used to execute the Observable and cancel the observable to avoid the memory leak.
- Operators: It’s predefined functions that use to capture observable values and transform the value (ie: filtering, concat etc).
- Subject: It’s a special type of observable used for multicasting the observable. Observables are Unicast.
- Scheduler: It controls when a subscription starts and when notifications are delivered.
RxJS is a library for composing asynchronous and event-based programs by using observable sequences.
It provides one core type, “observable”.
In this series, we will see all about Basics of Observables, Operators, Subscription and Scedular