function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ai SupartiniAi Supartini 

Missing Preview button for Lightning component/app

Hi All,

I just started with 'Lightning Componenets' module in Trailhead.  I head created myDomain successfully.  
Now I am creating  HelloWorld component and application using Developer Console.  I found out that there is no Preview button. So, I can't preview the script.  
I tried to open other scripts (Visualforce pages and Classes), the Preview button is there.  Only for Lightning component and Lightning application, the Preview button is disappear.

Did I miss some step(s) ? 

Thanks you for helping me 
​Ai
Best Answer chosen by Ai Supartini
Nathan GreerNathan Greer
Ai,

The Preview button is in a different place for Lightning Apps. It's on the right side instead of the top left. Also, the preview button will only show on the .app and not your .cmp.

You can also just load the app using the url <yoursalesforceinstanceURL>/c/<yourappname>.app

Hope this helps.

Thanks,
Nathan

All Answers

Nathan GreerNathan Greer
Ai,

The Preview button is in a different place for Lightning Apps. It's on the right side instead of the top left. Also, the preview button will only show on the .app and not your .cmp.

You can also just load the app using the url <yoursalesforceinstanceURL>/c/<yourappname>.app

Hope this helps.

Thanks,
Nathan
This was selected as the best answer
Ai SupartiniAi Supartini
Nathan,

Thank you for your reply, yes I saw it now :) 

Ai