Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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
You can’t perform that action at this time.