Skip to content

docs: fix undefined variable in custom stepper guide #31517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2025

Conversation

wbreakell
Copy link
Contributor

In the @for loop of the custom-stepper.component.html template, the code references an undefined variable i. To fix this, the loop should declare i using the built-in $index variable provided by Angular's @for block.

This matches the approach used in the embedded StackBlitz example for this page.

@wbreakell wbreakell requested a review from a team as a code owner July 10, 2025 06:15
@wbreakell wbreakell requested review from crisbeto and andrewseguin and removed request for a team July 10, 2025 06:15
@angular-robot angular-robot bot added the area: docs Related to the documentation label Jul 10, 2025
@andrewseguin andrewseguin added the target: patch This PR is targeted for the next patch release label Jul 10, 2025
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jul 23, 2025
@crisbeto crisbeto merged commit 3de2b96 into angular:main Jul 23, 2025
27 of 29 checks passed
@crisbeto
Copy link
Member

The changes were merged into the following branches: main, 20.1.x

crisbeto pushed a commit that referenced this pull request Jul 23, 2025
@wbreakell wbreakell deleted the fix-stepper-loop branch July 23, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: docs Related to the documentation target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants