Skip to content

Nested for loops reset parent even/odd #52917

Closed

Description

@jjw99

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

Yes

Description

With the new control flow syntax, nested inner for loops will overwrite the value of even/odd variables stored in the parent loop.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-3qegjg?file=src%2Fmain.ts

Please provide the exception or error you saw

In the stackblitz example, the value of 'odd' should be retained in the inner loop iterations.

Please provide the environment you discovered this bug in (run ng version)

17.0.2

Anything else?

No response

Activity

  1. added
    core: control flow
    on Nov 14, 2023
  2. added
    area: core
    on Nov 15, 2023
  3. added this to the needsTriage milestone on Nov 15, 2023
  4. self-assigned this
    on Nov 15, 2023
  5. added a commit that references this issue on Nov 16, 2023
    38e727a
  6. added a commit that references this issue on Nov 16, 2023
    49dca36
  7. angular-automatic-lock-bot commented on Dec 17, 2023

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on Dec 17, 2023
  9. added a commit that references this issue on Jan 23, 2024
    1e9a7fd
  10. added 2 commits that reference this issue on Jan 26, 2024
    d9d566d
    e1bfd9f
  11. added a commit that references this issue on Jan 26, 2024
    c82c839
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: corebugcore: control flowstate: has PR

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions