【发布时间】:2019-07-24 05:36:28
【问题描述】:
我正在尝试使用表 tr td 遍历 *ngFor。*ngFor 在 IE 浏览器中显示空数据。但是在 chrome 中可以正常工作。
一段代码:
<tbody>
<tr *ngFor="let item of files; let indx= index">
<td><strong>{{ item.name }}</strong></td>
<th class="text-center">
<mat-icon (click)="removeFile(indx)">delete</mat-icon>
<!-- <mat-icon>get_app</mat-icon> -->
</th>
</tr>
</tbody>
【问题讨论】:
-
有人能回答这个吗??
-
这是一段没有渲染的代码吗?其他组件在 IE 中是否正常工作?
-
是的。其他组件正常渲染。只有这个不渲染
标签: angular7