title: use the elements of ngfor in ngif
body: <p>Current Behavior: See the code below.</p>
  
  <p>Behavior wish: I would simply like to use ngfor elements to make comparison in ngif.</p>
  
  <pre><code>&lt;div *ngFor="let item of userspeList" &gt;
              &lt;div *ngFor="let rspe of rspeList" &gt;
  
  
                &lt;div *ngIf="item?.uid === rspe?.uid; then adan"&gt;
  
                     &lt;p&gt;Je suis le plus grand&lt;/p&gt;
                &lt;/div&gt;
  
  
                  &lt;ng-template #adan&gt;
                       {{item.uid}} and {{rspe.uid}}
                  &lt;/ng-template&gt;
  
              &lt;/div&gt;
  
        &lt;/div&gt;
  </code></pre>
  
  <p>The browser displays the ng template with:</p>
  
  <pre><code>   PFbrvtxABEeXKhRMH2RaWnSkq0g1 and PFbrvtxABEeXKhRMH2RaWnSkq0g1.
  </code></pre>