Coding task · Angular course · Module 7: RxJS
Practice: BehaviorSubject
This kind of Subject requires an initial value and remembers the last one: new subscribers get the current value at once, and getValue() returns it synchronously.
Task
Complete the user state service: it needs a Subject with an initial value that remembers the last value and returns it with getValue().