I'm building a lightning component that displays one of many possible modals. I'm using to choose which to display, using an Integer attribute basically as a case.
<aura:attribute name="modalNum" type="Integer" default="0" />
{!v.modalNum} / {!1} / {!v.modalNum==1}
<aura:if isTrue="{!v.modalNum==1}">
<stuff />
</aura:if>
I feed in the value '1' to modalNum when I create the component. However, the second line renders to "1 / 1 / false", and the content within the doesn't render. What would cause this? My gut says this is some sort of type issue, but I'm not sure how to check for that within lightning code.
'1'
or1
? There's a big difference.