+ Start a Discussion
Nagaraju Mogili 31Nagaraju Mogili 31 

how to add numbers for records in lightning, I want to add the serial Number for the records using lightning component

User-added image
Best Answer chosen by Nagaraju Mogili 31
Nayana KNayana K
I assume you are using aura:iteration. Check with indexVar attribute
<aura:iteration items="{!v.lstRows}" var="item" indexVar="i">


indexVar starts from 0. So +1 will help to print serial number.