title: Call a function from an *ngIf Angular 5
body: <p>Say I have this code here</p>
  
  <pre><code>&lt;div *ngIf="item"&gt;lorem ipsum&lt;/div&gt;
  </code></pre>
  
  <p>Is there a way I can call a function if that *ngIf evaluates to true??</p>
  
  <p>you know something like this..</p>
  
  <pre><code>&lt;div *ngIf="(item) : callFunction() ? ..."&gt;lorem ipsum&lt;/div&gt;
  </code></pre>
  
  <p>any help would be appreciated!</p>
  
  <p>Thanks</p>