title: Angular: Correct syntax for NgIf using async pipe with multiple template variables?
body: <p>With Angular, we can subscribe to an Observable and assign the result of the async pipe to another variable by doing :</p>
  <pre><code>    *ngIf=&quot;(data$ | async) as data; else loading&quot;
  </code></pre>
  <p>We can check multiple conditions :</p>
  <pre><code>    *ngIf=&quot;(data1$ | async) &amp;&amp; (data2$ | async); else loading&quot;
  </code></pre>
  <p>But what is the correct syntax to verify multiple conditions using Angular &quot;as&quot; Keyword ?</p>
  <p>I tried :</p>
  <pre><code>    *ngIf=&quot;((data1$ | async) as data1) &amp;&amp; ((data2$ | async) as data2); else loading&quot;
  </code></pre>
  <p>But I have an issue :</p>
  <pre><code>Parser Error: Unexpected token &amp;&amp;, expected identifier, keyword, or string
  </code></pre>