Open Closed

Cannot get let-index from abp-table in Angular UI #123


User avatar
0
drpdev2 created

I refered to https://docs.abp.io/en/abp/master/Tutorials/Part-2?UI=NG#add-a-modal-to-booklistcomponent to create table by abp-table. But I cannot get the index of data to display column Order in my table.

We are generally get index as the Angular guide: https://angular.io/api/common/NgForOf Could you share how to get index in abp-table?

The following is my code, I tried to get index in #tableBody. <ng-template #tableBody let-data let-index="index"> <tr> .... <td>{{ index }}</td> ...


1 Answer(s)
  • User Avatar
    1
    Mehmet created

    Hi @drpdev2

    It should be rowIndex as shown below:

    <ng-template #tableBody let-data let-index="rowIndex">
    {{ index }}
    </ng-template>
    
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00