You need to sign in to do that
Don't have an account?
Sandhya D 26
Appending colon based on values from aura iteration
Hi All,
I am appending colon within <aura:iteration> between each values, but the issue is the colon is getting appended even after the last value. i need it till the last value and not after the last value.
I am appending colon within <aura:iteration> between each values, but the issue is the colon is getting appended even after the last value. i need it till the last value and not after the last value.
<aura:iteration items="{!item.category}" var="category"> <c:Link class="full-width" recordId="{!category.Category_Id__c}" objectApiName="Category__c" label="{!category.Name}"/> <aura:if isTrue="{! !empty(item.category)}"> : </aura:if> </aura:iteration>
You can use this to render stuff based on the index, in your case as long as the item isn't the 'last' item in the list