BehaviorSubject of RxJS
Learn about BehaviorSubject and how it can be used to display placeholder text while waiting for an HTTP response.
We'll cover the following...
When an Observer subscribes to a BehaviorSubject
, it receives the last emitted value and then all the subsequent values. A BehaviorSubject
requires us to provide a starting value so that all Observers always receive a value ...