Last active
February 28, 2016 23:59
-
-
Save msrivastav13/5307e61cce8db4892463 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page showHeader="true" sidebar="true"> | |
<apex:includeLightning /> | |
<div id="lightning"> hello World VF!! </div> | |
<script> | |
$Lightning.use("c:sampleApp", function() { | |
$Lightning.createComponent("c:sampleComponent", {}, | |
"lightning", | |
function(cmp) { | |
var myExternalEvent; | |
myExternalEvent = $A.get("e.c:sampleEvent"); | |
myExternalEvent.fire(); | |
}); | |
}); | |
</script> | |
</apex:page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment