Angular 5表绑定与动态行

时间:2018-07-11 14:27:27

标签: data-binding angular5

我们可以在Angular 5中做类似的事情吗?

这是一个模拟表:

Mock table shown here

我的数据采用以下格式:

this.dashboardData = [
      {"dashboardDate":"2018-07-26T00:00:00"
      ,"analysis":[
       {"code":"PT0100","capacityCount":3,"capacityUsed":0},
      ,{"code":"A3900","capacityCount":3,"capacityUsed":0}
      ]},
    ,{"dashboardDate":"2018-07-27T00:00:00"
    ,"analysis":[
      {"code":"PT0100","capacityCount":3,"capacityUsed":3}
     ,{"code":"A3900","capacityCount":3,"capacityUsed":0}
    ]}
    ];

日期是我的列,代码是我的行。行和列都是动态的。任何帮助将不胜感激

0 个答案:

没有答案