Is there a way to set a padding-top of 10px only if the length of model.leaseTransactionDto.wagLeaseLandlordDto is greater than 1?
Can someone provide the correct syntax for conditionally setting padding based on the length? Thank you.
#sample code
<div *ngFor="let landlord of model.leaseTransactionDto.wagLeaseLandlordDto; let i = index"
[style.padding-top.px]="model.leaseTransactionDto.wagLeaseLandlordDto.length > 1 ? 10 : 0"
style="font-size: 12px;text-overflow: ellipsis;overflow-x: hidden;">
<div class="primary-color" matTooltip="{{landlord.landLordEmail}}"
style="text-overflow: ellipsis; overflow-x: hidden;"
*ngIf="landlord.landLordEmail">{{landlord.landLordEmail}}</div>
</div>