Activity Forums Salesforce® Discussions What is the use of aura:iteration tag in Salesforce Lightning Aura Component?

  • Ayush

    Member
    January 30, 2020 at 1:31 pm

    aura:iteration iterates over a collection of items and renders the body of the tag for each item.

  • Udit

    Member
    January 30, 2020 at 2:25 pm

    Hello Arun,

    Aura:iteration tag lets us iterate over an array or collection of items in Salesforce.

     

  • Marziya

    Member
    January 30, 2020 at 2:48 pm

    hii Arun,

    aura:iteration iterates over a collection of items and renders the body of the tag for each item. Data changes in the collection are rerendered automatically on the page. It also supports iterations containing components that are created exclusively on the client-side or components that have server-side dependencies.

  • Kirandeep

    Member
    January 30, 2020 at 5:34 pm

    aura:iteration iterates over an array or collection of items and renders the body of the tag for each item.

    for example:-

    <aura:component>
    
    	 <aura:iteration items="1,2,3,4,5" var="item">
            <meter value="{!item / 5}"/><br/>
        </aura:iteration>
    
    </aura:component>

     

Log In to reply.

Popular Salesforce Blogs