You need to sign in to do that
Don't have an account?

How to view Lightning component in salesforce classic
Hi All,
I have a requriement where i need to display my Lightning component in classic I have included Lightning component it in My visualforce page but i am seeing the below erorr in nloading the Vf page and output is being displayed as blank.
Vf Page :
<apex:page>
<apex:includeLightning />
<script>
$Lightning.use("c:ExampleApp", function() {
$Lightning.createComponent("c:ExampleApp",
{ displaytext: "This is your Lightning component"
},
function(cmp){
console.log('Lightning component is being displayed in a VF page');
});
});
</script>
<apex:includeLightning />
<div style="Width:100%;height:150px;" id="lightningcomp" />
</apex:page>

Can i include my Lightning component directly in salesforce classic ?
Thanks,
Vijay.
I have a requriement where i need to display my Lightning component in classic I have included Lightning component it in My visualforce page but i am seeing the below erorr in nloading the Vf page and output is being displayed as blank.
Vf Page :
<apex:page>
<apex:includeLightning />
<script>
$Lightning.use("c:ExampleApp", function() {
$Lightning.createComponent("c:ExampleApp",
{ displaytext: "This is your Lightning component"
},
function(cmp){
console.log('Lightning component is being displayed in a VF page');
});
});
</script>
<apex:includeLightning />
<div style="Width:100%;height:150px;" id="lightningcomp" />
</apex:page>
Can i include my Lightning component directly in salesforce classic ?
Thanks,
Vijay.
Hi,
You can take references from the below link.
https://developer.salesforce.com/blogs/developer-relations/2016/02/lightning-components-visualforce-lightning.html
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_visualforce.htm
Please mark it as the Best Answer if your queries are solved.
Thank You
Please check out this blog, which could help you implementing this requirement:
https://developer.salesforce.com/blogs/developer-relations/2016/02/lightning-components-visualforce-lightning.html
Hope above information helps. Please mark as Best Answer so that it can help others in future.
Thanks.