-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement different types of Subjects #1
Comments
Sorry for so late response. Could you please clarify, what are you trying to accomplish? |
This is because you are using Subject which is emit and forget strategy. You need to implement Behavioral Subject or ReplaySubject to allow getting last values upon subscription. I am no expert in Rx as i'm still trying to find my way around the paradigm but this is my adaptation that allows a new subscriber to get the n last values of his even upon subscription. Feel free to make the code cleaner. `import { BehaviorSubject } from 'rxjs/BehaviorSubject'; export class RadioService {
} |
Hi,
I really liked your work. i just wanted to know how can i implement ReplaySubject.
Thanks
The text was updated successfully, but these errors were encountered: