I have an iteration which reproduces a list on a lightning page. I want to make this iteration variable based on 2 lists. How do I make the list (items) variable based on IF condition? Or do I need to place the whole iteration twice in an if condition?
Something similar to:
<aura:if isTrue="{!v.opleidingenListfilteredByDate == null}">
<aura:variable var="Opl" value="{!v.opleidingenList}"/>
</aura:if>
<aura:if isTrue="{!v.opleidingenListfilteredByDate != null}">
<aura:variable var="Opl" value="{!v.opleidingenListfilteredByDate}"/>
</aura:if>
<aura:iteration items="Opl" var="opleiding">
...
</aura:iteration>