Skip to content

Instantly share code, notes, and snippets.

@simpluslabs
Created November 23, 2018 07:33
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 simpluslabs/4a807fb4b29886d6705622df29902d23 to your computer and use it in GitHub Desktop.
Save simpluslabs/4a807fb4b29886d6705622df29902d23 to your computer and use it in GitHub Desktop.
<aura:component controller="FetchData" implements="force:appHostable,flexipage:availableForRecordHome,force:hasRecordId">
<!--forceRefreshViewComp-->
<aura:handler name="init" value="{! this}" action="{! c.doInit}" />
<aura:handler event="force:refreshView" action="{! c.doInit}" />
<aura:attribute name="account" type="Account" />
<lightning:card title="Account Detail">
<div class="slds-m-horizontal_small">
<Strong>Account Name:</Strong> {! v.account.Name} <br/>
<Strong>Clean Status:</Strong> {! v.account.Type}
</div>
</lightning:card>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment