Activity Forums Salesforce® Discussions What is the use of renderIf in Salesforce lightning component?

  • Parul

    Member
    August 18, 2018 at 5:17 AM

    Hello Anurag,

    aura:renderIf : If you expect to show the components for both the true and false states use renderif, and it would require a server round trip to instantiate the components that aren't initially rendered.

  • shariq

    Member
    September 14, 2018 at 10:47 PM

    Hi,

    It is basically used for show and hide the components.

    To add more - aura:renderIf  is deprecated as I read on developer.salesforce, use aura:if

    <aura:component>
    <aura:if isTrue="{!v.truthy}">
    True
    <aura:set attribute="else">
    False
    </aura:set>
    </aura:if>
    </aura:component>

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Steps to Connect Pardot to Salesforce

Steps to Connect Pardot to Salesforce

Blog in

Steps to Integrate Salesforce and Pardot: There are some steps to install Pardot in salesforce 1- Click on this link https://login.salesforce.com/?ec=302&startURL=%2Fpackaging%2FinstallPackage.apexp%3Fp0%3D04t1W000000U7P8(production) https://test.salesforce.com/?ec=302&startURL=%2Fpackaging%2FinstallPackage.apexp%3Fp0%3D04t1W000000U7P8 (sandbox) 2- After…

Popular Salesforce Videos