【发布时间】:2020-05-28 22:37:04
【问题描述】:
对不起,我是 Angular 的新手,在自己制作一些应用程序的同时尝试学习一些基础知识。
我有以下在表格单元格中输出一个数组 测试1,测试2,测试3
我的目标是让它显示为
测试1
测试2
测试3
getStatus(element.message) 返回一个由
构造的数组array.push(match[0]) 在 for 循环中
<ng-container matColumnDef="ticketStatus">
<th mat-header-cell *matHeaderCellDef class="text-center w-6">
Status
</th>
<td mat-cell *matCellDef="let element">{{ getStatus(element.message) }}</td>
</ng-container>
【问题讨论】:
标签: angular