Angular4.0中常用指令

时间:2023-03-09 08:36:38
Angular4.0中常用指令

Angular 4.0

1. 指令:*ngFor

循环带索引的两种方法:

<tr *ngFor="let item of listWorkingDetails index as i" >

<tr *ngFor="let item of listWorkingDetails; let i = index" >