Activity › Forums › Salesforce® Discussions › How can we preview a page using Salesforce lightning component?
-
How can we preview a page using Salesforce lightning component?
Posted by Anurag algoworks on July 16, 2018 at 1:37 PMHow can we preview a page using Salesforce lightning component?
shariq replied 7 years, 7 months ago 4 Members · 3 Replies -
3 Replies
-
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.
- [adinserter block='9']
-
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
-
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.