I have template like this
<div class="action" *ngFor="let action of (actions | async)">
<div
class="collapsible action-table-row"
[attr.aria-expanded]="actionCollapse.isActive()"
[class.collapse-table-row]="actionCollapse.isActive()"
(click)="openActionCollapse(actionCollapse)"
>
I want to call a function if condition satisfied, something like this
<div class="action" *ngFor="let action of (actions | async)">
<div
class="collapsible action-table-row"
[attr.aria-expanded]="actionCollapse.isActive()"
[class.collapse-table-row]="actionCollapse.isActive()"
(click)="openActionCollapse(actionCollapse)"
(action.value=="")="callfunction()" //<---- here
>
How can I achieve this.