July 2018
Beginner to intermediate
458 pages
9h 58m
English
The JavaScript code to create a Lightning Component on a Visualforce page is as follows:
<apex:page> <apex:includeLightning /> <div id="Lightning" /> <script>
$Lightning.use("c:youtubesearchOutApp", function() {
$Lightning.createComponent("c:youtubesearch",
{ },
"Lightning",
function(cmp) {
// do some stuff
});
});
</script></apex:page>
Notice that $Lightning.use() accepts two parameters:
Read now
Unlock full access