How can I identify a stepper from a array of steppers and set the step index on that stepper. example I have 4 steppers generated through a *ngFor loop, this.stepper always point to the first stepper and this.stepper.selectedIndex is for the first stepper not the nth stepper. How do I select the correct stepper to change the index?
<div *ngFor="let item of items; let i = index">
<mat-vertical-stepper #stepper >
<mat-step label="Order Received:" state="phone">
<mat-card >
<p class="blinkme">Order Received</p>
</mat-card>
</mat-step>
<mat-step label="Order Processing:" state="order">
<mat-card>
Order Processing---
<p class="blinkme"> Order Time + {{SP}} Minutes </p>
</mat-card>
</mat-step>
</mat-vertical-stepper>
</div>
so for 4 items I have 4 expansion panels code not shown each panels has item of items end result is 4 stepper embedded in the expansion panel. problem is this.stepper.selectedIndex = index; always points to the first stepper but lookign at the function I can see 4 array steps each with a vertical stepper. I need to get at the Nth step so I can set its index if user selects the Nth expansion panel.