#rxJS #Angular #variants #Angular6

RxJS Subject and its variants

Reading Time: 3 minutes SUBJECT Subject acts as an observable and observer both which do both listen to new notifications and also send/broadcast it to any dedicated component which subscribes to it. So the first step is to import “subject” in your typescript file. import { Subject } from “rxjs/Subject”; and now quickly create a Subject with just a simple line code written below: let newSubject = new Subject(); Continue Reading