Thursday, September 6, 2018

Aura iteration in lightning component

Aura iteration iterates over the collection of items and renders body for each item in the collection.


<aura:iteration items="{!v.listname}" var="somevariable">

Let's display a list in the lightning component.

<aura:component >  

<aura:attribute type="List" name="Listattribute" default="{'Apple','Orange','Mango'}" />

    <aura:iteration items="{!v.Listattribute}" var="m">



How to Use Map in Lightning Component (Click here)

The topic "how to use map in lightning component" covers :

1) Simply storing and displaying value from map in lightning component.

2)Displaying map by using aura iteration.

TAGS:Aura iteration in lightning component, aura:iteration,aura:iteration Salesforce Lightning.

No comments:

Post a Comment