I have a doubt, I the project I'm working on, I'v seen this:
private _isReady$: BehaviorSubject<boolean> = new <boolean>(false);
get IsReady$(): Observable<boolean> {
return this._isReady$.asObservable();
}
And then, In the html template:
{{ isReady$ | async}}
Why not define the behaviorSubject as public, and use it direcly in the html with the async pipe? What is the difference/benefit returning that behaviour subject as an observable to use it in the html?