-3

如何在 Angular 中将 *ngFor 用于多个值?我想知道 Angular 中 *ngFor 用法的完整描述,我试过这个:

*ngFor="让datas的数据按$index跟踪"
4

1 回答 1

0

来自角度 io 的语法:

<li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>

关联

于 2018-11-20T14:41:56.520 回答