I have a question regarding accessing values in Typescript. Whenever I load my website, I make a call to a service that fetches user data.
private currentUserSource = new ReplaySubject<IUser>(1);
currentUser$ = this.currentUserSource.asObservable();
// The call to the controller has been omitted for brevity
// Now passing the user to ReplaySubject here
this.currentUserSource.next(user);
In my HTML file, I can access the values using an async call like this
(currentUser$ | async).someProperty
My question is, how do I access these values in Typescript?