Dynamically loading columns and data in to table in Angular 2

后端 未结 7 879
醉话见心
醉话见心 2020-12-19 09:18

I have an HTML page in which I want to create a table. The columns in this table are dynamic which means that they are fetched from the server into a variable in the compone

相关标签:
7条回答
  • 2020-12-19 10:08

    Instead of using

    <tr *ngFor="#data of data">
    

    You should use

    <tr *ngFor="#data of data" *ngModel="data[column]">
    
    0 讨论(0)
提交回复
热议问题