Use data from *ngFor outside of *ngFor scope

Viewed 1992

Here is a sample problem that i want to actually solve. Your help will really appreciate. Thanks a lot!

<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>
1 Answers
Related