Skip to content

Commit 3de2b96

Browse files
authored
docs: fix undefined variable in custom stepper guide (angular#31517)
1 parent 52cdc38 commit 3de2b96

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)