Is there a way to disable the click event for deleting hours with the 'X' symbol based on a condition? Thank you in advance.
<table navigatable class="<some_class>">
<tbody>
<tr *ngFor="let item of list; let i=index">
<td style="width: 95%">{{item}}</td>
<td style="width: 5%">
<span class="<some_class>" (click)="DeleteHour(i)">X</span>
</td>
</tr>
</tbody>
</table>