Angular · Middle · Question 54 of 75

How does ReplaySubject(3) differ from BehaviorSubject?

Explanation

BehaviorSubject always has a current value (one) and requires an initial value. ReplaySubject buffers a configurable number of values.

Further reading

Problem with a question

Angular · Middle · question 54

Test yourself

Take the Angular · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz