Answers for "how to compre value using aura if"

0

how to compre value using aura if

<aura:application >
    <aura:attribute name="items" type="List" default="[1,2,3]" />
    <aura:attribute name="current" type="Integer" default="2" />

    <aura:iteration items="{!v.items}" var="item">
        <aura:if isTrue="{!v.current == item}">
            <div>Current: {!item}</div>
            <aura:set attribute="else">
                <div>Not Current: {!item}</div>
            </aura:set>
        </aura:if>
    </aura:iteration>
</aura:application>
Posted by: Guest on July-16-2021

Code answers related to "how to compre value using aura if"

Browse Popular Code Answers by Language