如何创建大小为 100 x 100 的表格,其中单元格为 5px x 5 px,没有 Angular Materials 的普通表格?所有单元格必须通过(click)点击
编辑: 我如何导航到位置,np.这张表中的 X x Y ?
最佳答案
@View({
template: `
<table>
<tr *ngFor="let number of numbers">
<td *ngFor="let number of numbers">{{number}}</td>
</tr>
</table>
`
})
export class SampleComponent {
numbers: any;
this.numbers = Array.from(Array(100)).map((x, i) => i );
}
关于html - 如何在 HTML 中通过 ngFor(角度 5)创建 100 x 100 的表格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48335577/