0
votes

I have tried this:

public state$: Observable<boolean>;
ngOnInit(): void {
  this.state$ = this.appRef.isStable;
}

Template is:

{{ state$ | async }}

This does not work for me

What does this.appRef.isStable hold? - Sharan Mohandas
It holds observable<boolen> - user13406409
Does it throw any error? - Michael D
Boolean might not get displayed in the html. Try with a number or string, or check the condition in html and render some text - Sharan Mohandas
@SharanMohandas: Why won't a boolean get displayed in the template? Could you please elaborate? - Michael D