Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent of publish subject in RxJs

Tags:

angular

rxjs

I notice that publish subject is not implemented in RxJS. Is there a way to simulate something like it ? I want to receive only the data that is sent after I subscribe, without the last value. Exactly the behavior of an event emitter in angular 2. All the other subject types seem to store the last value and send it.

With regards

like image 294
Hazerd Avatar asked Mar 13 '17 13:03

Hazerd


Video Answer


2 Answers

Ok, so what I was searching for is the simple Subject.

like image 92
Hazerd Avatar answered Oct 25 '22 02:10

Hazerd


This information can help you:

https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/subjects/subject.md

like image 3
Max K Avatar answered Oct 25 '22 03:10

Max K