Skip to content

Instantly share code, notes, and snippets.

@dsharrison
Created November 29, 2017 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsharrison/a923568a2f3658abe4bb35f5ce089578 to your computer and use it in GitHub Desktop.
Save dsharrison/a923568a2f3658abe4bb35f5ce089578 to your computer and use it in GitHub Desktop.
<aura:application extends="ltng:outApp" >
<aura:dependency resource="c:recordViewRepro" />
</aura:application>
<aura:component access="PUBLIC">
<span>Begin Record View Form</span>
<!-- NOTE: Replace the record Id below with a record Id from your org -->
<lightning:recordViewForm recordId="0064400000nL1bT" objectApiName="Opportunity">
<lightning:outputField fieldName="Name" />
</lightning:recordViewForm>
<span>End Record View Form</span>
</aura:component>
<apex:page>
<apex:includeLightning/>
<div id="ltng">
</div>
<script>
$Lightning.use('c:LightningOutRecordView', function() {
$Lightning.createComponent('c:recordViewRepro',
{},
'ltng',
function(cmp) {
// do some stuff
});
});
</script>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment