Activity Forums Salesforce® Discussions How can we conditionally display content in lightning component?

  • Mallika

    Member
    July 21, 2020 at 6:03 am

    Hi Pooja,
    By using <aura:if> we can display content conditionally.
    simple example that shows an error message when an error occurs.

    <aura:if isTrue="{!v.isError}">
        <div>{!v.errorMessage}</div>
    </aura:if>

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos