What is subscribe in RxJS?

The RxJS Subscribe operator is used as an adhesive agent or glue that connects an observer to an Observable . An observer must be first subscribed to see the items being emitted by an Observable or to receive an error or completed notifications from the Observable.

Read more

What is BehaviorSubject?

BehaviorSubject is a type of subject , a subject is a special type of observable so you can subscribe to messages like any other observable. The unique features of BehaviorSubject are: It needs an initial value as it must always return a value on subscription even if it hasn’t received a next()17 Tem 2017

Read more