Starts in:
2 DAYS
7 HRS
17 MIN
49 SEC
Starts in:
2 D
7 H
17 M
49 S
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>
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06