In this article, we are going to see Subject and Behavior Subject in RxJs library.
Subject is a special type of Observable in RxJs Library in which we can send our data to other components or services. A Subject is like an Observable but can multicast to many observers which means subject is at the same time an Observable and an Observer.
Here are some important points of subjects
subject =new Subject<datatype>();
#angular #angular 8