You need to sign in to do that
Don't have an account?
kruthika sai
Lightning COmponent - Using Expressions challenge is failing.
I am facing an error - The component is not evaluating the value of the 'DayOfTheWeek' attribute to determine what to display
Please help me find out what is wrong.
<aura:component >
<aura:attribute name="DayOfTheWeek" type="String" />
<aura:if isTrue="{!v.DayOfTheWeek}">
Today is {!v.DayOfTheWeek}
<aura:set attribute="else">
Error,,.
</aura:set>
</aura:if>
</aura:component>
Please help me find out what is wrong.
<aura:component >
<aura:attribute name="DayOfTheWeek" type="String" />
<aura:if isTrue="{!v.DayOfTheWeek}">
Today is {!v.DayOfTheWeek}
<aura:set attribute="else">
Error,,.
</aura:set>
</aura:if>
</aura:component>
<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>
If this doesn't work, try refreshing your screen, then check challenge again.