There was an error while loading. Please reload this page.
1 parent 52cdc38 commit 3de2b96Copy full SHA for 3de2b96
1 file changed
guides/creating-a-custom-stepper-using-the-cdk-stepper.md
@@ -45,8 +45,8 @@ This is the HTML template of our custom stepper component:
45
46
<footer class="step-navigation-bar">
47
<button class="nav-button" cdkStepperPrevious>←</button>
48
- @for (step of steps; track step) {
49
- <button class="step" [class.active]="selectedIndex === $index" (click)="onClick(i)">
+ @for (step of steps; track step; let i = $index) {
+ <button class="step" [class.active]="selectedIndex === i" (click)="onClick(i)">
50
Step {{i + 1}}
51
</button>
52
}
0 commit comments