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" >

 

猜你喜欢

转载自www.cnblogs.com/laoniaofly/p/9333195.html
今日推荐