I'm in a case where I want to display observable data in an element evaluated with ngIf.
<div *ngIf="contition$ | async">
<element> {{(data$ | async)}} </element>
</div>
As you know, observable needs a subscriber, otherwise it will never be called.
My problem is that my observable depends on an event executed after the validation of the ngIf condition. As a result, my element does not display anything.
How to make my observable subscribed, before my ngIf is triggered?
Edit: My problem is the following, I want to display data$. As you can see, to subscribe to data$, my element must wait for the observable contition$. But data$ is an observable that depends on other upstream events, which necessarily come before contition$ itself depending on its events.