You need to sign in to do that
Don't have an account?
![sunil taruvu sunil taruvu](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
How to check the Lightning component output
Hi All,
I have created a lightning component with the help of some online tutorials, but i dont know how to see the output of that component. Can any one please guide me how to check the output of lightning compoent and also how to debug ligntning components.
Thanks
I have created a lightning component with the help of some online tutorials, but i dont know how to see the output of that component. Can any one please guide me how to check the output of lightning compoent and also how to debug ligntning components.
Thanks
You need to add your lighting component as tab so that you can see that in Salesforce1. Add it as Lightning tab and then you can see output inside mobile.
Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
There is two ways to check the output of lightning component.
1. create one lightning app and include your component inside that application .
to include your component inside ur app u need to follow these steps:
a. copy your componen name
b. open your newly created lightning application and do like this
<namespace:componentName> </namespace:componentName>
c. press Ctrl+s
D. click on "preview" button in top right corner , it will open a viw in browser.
This is the easiest and quickest way to test and view your lightning component.
2. Make a component tab and then include that tab inside salesforce1 navigation tab. and then open the salesforce1 app and test it.
This is the longer way so not preferred during development.
To debug your lightning component you need to rely on your "browser console"
follow this link to learn basic of debugging
https://developer.salesforce.com/trailhead/lightning_components/lightning_components_debug
Thanks
Rishav kumar