Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <apex:page standardController="Opportunity">
- <apex:includeScript value="/lightning/lightning.out.js" />
- <script>
- var profile = '{!$Profile.Name}';
- $Lightning.use("c:ModalApp", function() {
- $Lightning.createComponent(
- "c:Modal",
- { "recordId" : '{!$CurrentPage.parameters.oppId}',
- "profile" : profile},
- "theOpp",
- function(cmp) {
- console.log("Component created!");
- console.log(cmp);
- });
- });
- </script>
- <div id="theOpp"></div>
Add Comment
Please, Sign In to add comment