Skip to content

Instantly share code, notes, and snippets.

View forcemantis's full-sized avatar

forcemantis

View GitHub Profile
<aura:component>
<aura:attribute name="firstName" type="String" access="global"/>
<aura:attribute name="lastName" type="String" access="global"/>
<aura:attribute name="emailAddress" type="String" access="global"/>
<aura:attribute name="companyName" type="String" access="global"/>
<aura:attribute name="referrerURL" type="String" access="global"/>
Embedding Lighting Component in vf page and passing parameters from vf page to Lighting Component<br/>
First Name: {!v.firstName}<br/>
Last Name: {!v.lastName}<br/>
Email Address: {!v.emailAddress}<br/>
<apex:page standardStylesheets="false" applyBodyTag="false" applyHtmlTag="false" showHeader="false" sidebar="false">
<html>
<script src="https://kb-developer-edition.na50.force.com/lightning/lightning.out.js"></script>
<script>
$Lightning.use("c:TrailheadHelp", // name of the Lightning app
function() { // Callback once framework and app loaded
$Lightning.createComponent(
"c:KBAndSupport", // top-level component of your app
{
firstName:'Amit',