详解Angular2 之 结构型指令(2)

<!-- Examples (A) and (B) are the same --> <!-- (A) *ngFor div --> <div *ngFor="let hero of heroes">{{ hero }}</div> <!-- (B) ngFor with template --> <template ngFor let-hero [ngForOf]="heroes"> <div>{{ hero }}</div> </template>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyfpgj.html