title: My ng-template tag does not wait for ngIf async to finish
body: <p>I am trying to separate the owners and guest in my recipe app, where the owner can edit its own recipes while others can only view it. With my current code, it takes a bit for the ownership check to finish and I get the ng-template running in the meanwhile.</p>
  <p>I can't figure out how to make it wait.</p>
  <p>The HTML code:</p>
  <pre><code>
  &lt;!-- If this recipe exists --&gt;
  &lt;div *ngIf=&quot;recipe$ | async as recipe;&quot;&gt;
  
  
    &lt;!-- If we have a user  --&gt;
    &lt;div *ngIf=&quot;authService.user$ | async as user; else guest&quot;&gt;
      &lt;!-- If the user is the owner of this recipe --&gt;
      &lt;div *ngIf=&quot;user.uid == recipe.recipeOwnerID; else guest&quot;&gt; 
           &lt;app-recipe-form [recipe]=&quot;recipe&quot; (recipeReceived)=&quot;onReceivingRecipe($event)&quot;&gt;&lt;/app-recipe-form&gt; 
        &lt;/div&gt;
    &lt;/div&gt;
    
    &lt;!-- User NOT logged in --&gt;
    &lt;ng-template #guest&gt;
       &lt;p&gt; You will view it as you are a guest&lt;/p&gt;
    &lt;/ng-template&gt;
  &lt;/div&gt;
  
  </code></pre>
  <p>And a <a href="https://gyazo.com/220aefdbded2afffd69fa47fed3428c5" rel="nofollow noreferrer">gif</a> with the issue.</p>
  <p>You can see how it shows the ng-template tag until the ngIf checks finish.</p>