You need to sign in to do that
Don't have an account?
Tapasvini Makvana
Aura:renderIf condition Issue
Hi,
I have one problem in aura:renderIf condition in iteration component.
I have one requirement in which i have two aura:iteration loops like following
<aura:iteration items={!v.cntlst} var='val'>
<aura:iteration items={!v.stalst} var='n'>
<aura:renderIf isTrue='{! val == n.flval}'>
//components to show
</aura:renderIf>
</aura:iteration>
</aura:iteration>
But it is not showing anything even it matches the condition. I think the isTrue condition is not written proper.
Please help me to correct this condition.
Thanks in advance.
I have one problem in aura:renderIf condition in iteration component.
I have one requirement in which i have two aura:iteration loops like following
<aura:iteration items={!v.cntlst} var='val'>
<aura:iteration items={!v.stalst} var='n'>
<aura:renderIf isTrue='{! val == n.flval}'>
//components to show
</aura:renderIf>
</aura:iteration>
</aura:iteration>
But it is not showing anything even it matches the condition. I think the isTrue condition is not written proper.
Please help me to correct this condition.
Thanks in advance.
As you have two iterations, Try using <aura:if> inside the second iteration.
Hope that helps
Regards
Alsinan
All Answers
but m not clear how to write this condition.
As you have two iterations, Try using <aura:if> inside the second iteration.
Hope that helps
Regards
Alsinan
<aura:iteration items={!v.cntlst} var='val'>
<aura:iteration items={!v.stalst} var='n'>
<aura:if isTrue="{! val == n.Name}'">
testing text
</aura:if>
</aura:iteration>
</aura:iteration>
Thanks
Thanks for the solution.It worked.