I\'m not clear on the difference between a Subject and a BehaviorSubject. Is it just that a BehaviorSubject has the getValue()>
Subject
BehaviorSubject
getValue()>
BehaviorSubject keeps in memory the last value that was emitted by the observable. A regular Subject doesn't.
BehaviorSubject is like ReplaySubject with a buffer size of 1.
ReplaySubject