Created
September 3, 2018 19:18
-
-
Save JitendraZaa/7cf6ffaa5c21e1b8d285d7cefc41447f to your computer and use it in GitHub Desktop.
Launch Lightning Component using Formula field and read query parameter in Lightning 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
<aura:component implements="force:appHostable, lightning:isUrlAddressable" > | |
<aura:attribute name="accountName" type="String" /> | |
<aura:handler name="init" value="{!this}" action="{!c.init}" /> | |
Lightning Component received Account Name - {!v.accountName} | |
</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
({ | |
init : function(component, event, helper) { | |
var pageReference = component.get("v.pageReference"); | |
component.set("v.accountName", pageReference.state.accountName); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment