Last active
April 2, 2019 18:33
-
-
Save sfcure/764b7459afa7af4d5a6d57c65c31c071 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
<aura:component implements="force:appHostable,lightning:isUrlAddressable" > | |
<aura:attribute name="recordId" | |
type="String" | |
description="ID of the record."/> | |
<aura:handler name="init" | |
value="this" | |
action="{!c.doInit}"/> | |
</aura:component> |
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
({ | |
doInit : function(component, event, helper) { | |
component.set('v.recordId', component.get("v.pageReference").state.id); | |
console.log(component.get('v.recordId')); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment