Skip to content

Instantly share code, notes, and snippets.

@choudharymanish8585
Created November 2, 2018 21:21
Show Gist options
  • Save choudharymanish8585/9c26540b3417d8f3473778dbef2ef43f to your computer and use it in GitHub Desktop.
Save choudharymanish8585/9c26540b3417d8f3473778dbef2ef43f to your computer and use it in GitHub Desktop.
<!--Exntends Base Component in Component Definition -->
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" controller="AccountController" access="global" >
<aura:attribute name="data" type="Account[]"/>
<!-- Including BaseJS script. Once loaded call fetchAccounts method -->
<ltng:require scripts="{!$Resource.BaseJS}"
afterScriptsLoaded="{!c.fetchAccounts}"/>
<aura:iteration items="{!v.data}" var="acc">
<p><lightning:formattedText value="{!acc.Name}" /></p>
</aura:iteration>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment