Hi All...I just started learning salesforce lightning.I tried to use the component in spp but i am not getting anything on the preview page .FYI i deployed the domain also.
Hi SFDC_Developer!I am just using a basic code like- <aura:component > <h1>Hello silpi </h1> </aura:component> in lightning app I used- <aura:application > <c:HelloWorld/> </aura:application> I should get the o/p as Hello Silpi but its not showing I am getting a blank page. Thanks !!
May I suggest you please check with below Salesforce documentation which will point you in the right direction.
- https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/apps_add_components.htm
Please let us know if this helps.Mark this as solved if it's resolved.
Thanks,
Nagendra
<aura:component >
<h1>Hello silpi </h1>
</aura:component>
in lightning app I used-
<aura:application >
<c:HelloWorld/>
</aura:application>
I should get the o/p as Hello Silpi but its not showing I am getting a blank page.
Thanks !!
To use Lightning Components, your organization needs to have a custom domain configured using My Domain. https://trailhead.salesforce.com/en/modules/lex_dev_lc_basics/units/lex_dev_lc_basics_prereqs This should print Hello silpi, the code is correct.
Please, Make sure that your org has no namespace. If your org has namespace then for lightning app code should look like below : If it helps, Please mark it as BEST Answer.