Newer Version Available
aura:if
aura:if renders the
content within the tag if the isTrue attribute evaluates to true.
The framework evaluates the isTrue expression and instantiates components either in its body or else attribute.
| Attribute Name | Type | Description |
|---|---|---|
| else | ComponentDefRef[] | The markup to render when isTrue evaluates to false. Set this attribute using the aura:set tag. |
| isTrue | string | Required. An expression that determines whether the content is displayed. If it evaluates to true, the content is displayed. |