【发布时间】:2017-12-11 04:31:16
【问题描述】:
这是一个我想实际解决的示例问题。您的帮助将不胜感激。非常感谢!
<div>
<div>
<!-- is it possible to put the item.preview here?
It is outside of *ngFor
-->
</div>
<div *ngFor="let item of items">
<img [src]="item.cover" alt="item.name">
</div>
</div>
【问题讨论】:
-
您想要预览每个项目还是特定项目?
-
@ThinkingMedia 我想要预览 *ngFor 范围之外的特定项目。我实际上使用的是轮播。