I have this loop:
<tr *ngFor="let item of selectedItems; let i = index" >
<td [style.padding-left.px]="[ 5 * (i+1)]">{{item.num}}</td>
</tr>
What i want to achive is to add this padding on every item but only if in every item i have same property with same value. For example if i have for all items property main
that have same value i will add padding if not padding will be always fixed to 5px. Any suggestion?
I manage to add padding like this but without any condition.