Skip to content

Commit 0d518af

Browse files
wbreakellcrisbeto
authored andcommitted
docs: fix undefined variable in custom stepper guide (#31517)
(cherry picked from commit 3de2b96)
1 parent f1ccf6b commit 0d518af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/creating-a-custom-stepper-using-the-cdk-stepper.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ This is the HTML template of our custom stepper component:
4545

4646
<footer class="step-navigation-bar">
4747
<button class="nav-button" cdkStepperPrevious>&larr;</button>
48-
@for (step of steps; track step) {
49-
<button class="step" [class.active]="selectedIndex === $index" (click)="onClick(i)">
48+
@for (step of steps; track step; let i = $index) {
49+
<button class="step" [class.active]="selectedIndex === i" (click)="onClick(i)">
5050
Step {{i + 1}}
5151
</button>
5252
}

0 commit comments

Comments
 (0)