N
N
No Name2018-06-17 21:33:19
Angular
No Name, 2018-06-17 21:33:19

What is BehaviorSubject, how does it differ from Subject, and in what cases is it better to use?

What is BehaviorSubject, how does it differ from Subject, and in what cases is it better to use?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2018-06-18
@alienworkshop

https://stackoverflow.com/questions/43348463/what-...
Roughly speaking, BehaviorSubject stores the last sent value, and if you subscribe to it after sending the value, you will immediately get the last sent value, and besides , you can immediately create it with a preset value.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question