title: How to equate a variable and a property inside ngIf condition in Angular
body: <p>I am issuing *ngIf inside an *ngFor loop to compare some variable to a property (uid), as shown likes this:</p>
  <pre><code>&lt;ion-item-sliding *ngFor=&quot;let idea of ideas$|async;&quot; &gt;
        &lt;ion-item-options *ngIf=&quot;idea.creatorRef.id == uid&quot;&gt;
          {{...}}
        &lt;/ion-item-options&gt;
  &lt;/ion-item-sliding&gt;
  </code></pre>
  <p>The *ngIf condition always returns false. However, if I compare the variable or the property to a string, it works as expected. Can someone explain what is going on? If that is not allowed with Angular, how can I achieve similar functionality? Thank you.</p>
  <p>Sample values for <code>idea</code></p>
  <pre><code>{
    title: 'mars',
    creatorRef: {id: &quot;aMCFCUQppCQ1WZF5AaMpFYEYYqY2&quot;, displayName: &quot;nas&quot;}
  }
  </code></pre>
  <p>and <code>uid = &quot;aMCFCUQppCQ1WZF5AaMpFYEYYqY2&quot; </code></p>
  <p>Note: the functionality I want is to hide the option item whenever the ids do not match.</p>