Activity Forums Salesforce® Discussions How can we preview a page using Salesforce lightning component?

  • Anjali

    Member
    July 17, 2018 at 9:23 am

    Hello Anurag

    For previewing the page you have to create a dummy app and put the component directly in the app.

    Example:

    <aura:application >
    <c:AccountList/>
    </aura:application>

    here AccountList is the component name.

  • Parul

    Member
    September 18, 2018 at 7:08 am

    Create a Lightning component app and click on preview to see the result.

    For example:

    <aura:application extends="force:slds">
    <c:hello />
    </aura:application>

    <aura:component>
    <div class="white">
    Hello, HTML!
    </div>
    <h2>Check out the style in this list.</h2>
    <ul>
    <li class="red">I'm red.</li>
    <li class="blue">I'm blue.</li>
    <li class="green">I'm green.</li>
    </ul>
    </aura:component>

     

    thanks

  • shariq

    Member
    September 21, 2018 at 12:45 am

    Hi,

    There is one way also which is by lightning tab.

    Put component in test lightning application to open and see how it looks like.

    Hope this helps

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos