I trying in *ngFor pass object to another component, but passed only last object in table, but the object that was clicked should be displayed, how to solve this problem?
<tr data-toggle="control-sidebar" *ngFor="let user of pagedItems">
<td><control-sidebar [user]="user">
</control-sidebar>{{ user.name }}</td>
and in another component view showing only last table row.