title: Call function on condition in Angular 2
body: <p>I have template like this</p>
  
  <pre><code> &lt;div class="action" *ngFor="let action of (actions | async)"&gt;
            &lt;div
              class="collapsible action-table-row"
              [attr.aria-expanded]="actionCollapse.isActive()"
              [class.collapse-table-row]="actionCollapse.isActive()"
              (click)="openActionCollapse(actionCollapse)"
  
            &gt;
  </code></pre>
  
  <p>I want to call a function if condition satisfied, something like this</p>
  
  <pre><code> &lt;div class="action" *ngFor="let action of (actions | async)"&gt;
            &lt;div
              class="collapsible action-table-row"
              [attr.aria-expanded]="actionCollapse.isActive()"
              [class.collapse-table-row]="actionCollapse.isActive()"
              (click)="openActionCollapse(actionCollapse)"
              (action.value=="")="callfunction()" //&lt;---- here
            &gt;
  </code></pre>
  
  <p>How can I achieve this.</p>