In my application I would like to have conditional based click event ,
<div class="trashIconDiv" (click)="if(idx > 0) {removeSelected(item.spId)}">
In the above code removeSelected function should be executed only when idx >0 , any idea how to implement
(click)="idx > 0 && removeSelected(item.spId)"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With