Salesforce Lightning Component – Using Expressions challenge is failing

Salesforce Lightning Component – Using Expressions challenge is failing

Salesforce Lightning Aura Component makes use of aura:if and aura:set for expressions to hide and show the content. Please check the following code for reference.

Sample Code:

<aura:component >
     <aura:attribute name="DayOfTheWeek" type="String" default="Monday" />
    <aura:if isTrue="{!v.DayOfTheWeek == 'Monday'}">
            Today is {!v.DayOfTheWeek}
            <aura:set attribute="else">
                Today is not {!v.DayOfTheWeek}
            </aura:set>
        </aura:if>
</aura:component>

Leave a Reply