title: Putting two async subscriptions in one Angular *ngIf statement
body: <p>I have the following in my component template:</p>
  
  <p><code>&lt;div *ngIf="user$ | async as user&gt;...&lt;/div&gt;</code></p>
  
  <p>Within the above <code>div</code> I would like to use the async pipe to subscribe to another observable only once, and use it just like <code>user</code> above throughout the template. So for instance, would something like this be possible:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ng-template *ngIf="language$ | async as language&gt;
  &lt;div *ngIf=" user$ | async as user&gt;
    &lt;p&gt;All template code that would use both {{user}} and {{language}} would go in between&lt;/p&gt;
    &lt;/div&gt;
  &lt;/ng-template&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Or can this even be combined in one statement?</p>