how to set data from the ngfor to a variable in angular code example
Example: ngfor
<li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>
<li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>