我试着在* ngFor传递对象到另一个组件,但只传递了表中的最后一个对象,但是应该显示被单击的对象,如何解决这个问题问题? <tr data-toggle="control-sidebar" *ngFor="let user of pagedItems">
<td><control-sidebar [user]="user">
</control-sidebar>{{ use
以下是我想要实际解决的示例问题。你的帮助将非常感激。非常感谢! <div>
<div>
<!-- is it possible to put the item.preview here?
It is outside of *ngFor
-->
</div>
<div *ngFor="let item of items">
<