材料表未获得行标题和列动态的任何示例

问题描述 投票:-1回答:1

在我当前的情况下,我希望行作为标题和列将是动态值,我必须在下面的材料表中进行举例

                  Department       Deparment1
Name              Jack             Vimal
Location          Chennai          Lucknow

但是同样,我能够生成带角度的普通html,但问题是,当我在页面中执行任何操作时,我无法销毁当前表。

普通HTML表

     <table>
        <th *ngFor="let column of columnsToDisplay; let i=index" (click)="assumptionModel(i)">{{column}}</th>
        <tr>
          <td *ngFor="let dat of trialMilestones">{{dat.name}}</td>
        </tr>
        <tr>
          <td *ngFor="let dat of trialMilestones">{{dat.location}}</td>
        </tr>
    </table>

[请让我知道该怎么做,有什么可能的办法来解决这个严重的问题

angular angular-material angular8 angular-material2 mat-table
1个回答
0
投票

在典型的物料表中,有

© www.soinside.com 2019 - 2024. All rights reserved.