What is the difference between Subject and BehaviorSubject?BehaviourSubject will return the initial value or the current value on Subscription. When it is subscribed it emits the value immediately. A Subject doesn't hold a value.Subject example (with RxJS 5 API):const subject = new Rx.Subject();subject.next(1);subject.subscribe(x => console.log(x));Console output will...
Subject and BehaviorSubject differences - Angular
Continue Reading →