Tag - BehaviorSubject

RxJS-Subject: Enable Communication Between Components

RxJS (Reactive Extensions for JavaScript) is a library for reactive programming using observables that makes it easier to compose asynchronous or callback-based code. A subject in RxJS is used for multicasting data. This means that data can be pushed into a subject and the subject’s subscribers will in turn receive that pushed data. There are 3 Variants of Subject: BehaviorSubject: BehaviorSubject needs an initial value as it must always return a value on subscription even if it hasn’t received a next(). Upon subscription, it [...]

Read more...