You need to sign in to do that
Don't have an account?

Counter inside aura:iterator
Hi All,
I want to use counter inside aura: iterator. Like below
<aura:attribute name="counter" type="integer" default="0"/>
<aura:iteration items="{!v.futureInteractions}" var="Interaction">
<aura:if istrue="{!v.counter =0 && Interaction.isFutre}">
Futre interaction
<aura:set attribute="counter" value="1" />
</aura:if>
</aura:iteration>
Can anyone help me how can i change counter value inside iterator???
I want to use counter inside aura: iterator. Like below
<aura:attribute name="counter" type="integer" default="0"/>
<aura:iteration items="{!v.futureInteractions}" var="Interaction">
<aura:if istrue="{!v.counter =0 && Interaction.isFutre}">
Futre interaction
<aura:set attribute="counter" value="1" />
</aura:if>
</aura:iteration>
Can anyone help me how can i change counter value inside iterator???
i.e
inside aura:iteration only itrate values
Thanks, let us know if it helps you
sfdcMonkey.com