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 December 26, 2024, 06:07