As was pointed out by artur grzesiak
in the comments, the BehaviorSubject
interface was cleaned up, and the getter is now just myBehaviorSubject.value
.
I just wanted to add this as an answer because I almost didn’t read the comments to the original question, and would have missed the correct answer.