function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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">

{!i+1}
</aura:iteration>

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