Skip to content

Conversation

cexbrayat
Copy link
Member

@cexbrayat cexbrayat commented Oct 12, 2023

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

This adds the support of index as myIndex in *ngFor for the control flow migration.

What is the new behavior?

Before: @for (itm of items; track itm)
After: @for (itm of items; track itm; let myIndex = $index)

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@pullapprove pullapprove bot requested a review from alxhub October 12, 2023 13:40
@pkozlowski-opensource pkozlowski-opensource requested review from crisbeto and jessicajaniuk and removed request for alxhub October 12, 2023 13:41
@pkozlowski-opensource pkozlowski-opensource added area: migrations Issues related to `ng update`/`ng generate` migrations core: control flow Issues related to the built-in control flow (@if, @for, @switch) labels Oct 12, 2023
@ngbot ngbot bot added this to the Backlog milestone Oct 12, 2023
This adds the support of `let index as myIndex` in `*ngFor` for the control flow migration.

Before: `@for (itm of items; track itm)`
After: `@for (itm of items; track itm; let myIndex = $index)`
@cexbrayat cexbrayat force-pushed the fix/control-flow-migration-for-as branch from 7524df9 to 853ab64 Compare October 12, 2023 14:00
@jessicajaniuk jessicajaniuk added the target: rc This PR is targeted for the next release-candidate label Oct 12, 2023
Copy link
Contributor

@jessicajaniuk jessicajaniuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@jessicajaniuk jessicajaniuk added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 12, 2023
@jessicajaniuk jessicajaniuk added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 12, 2023
@pkozlowski-opensource
Copy link
Member

This PR was merged into the repository by commit 37c8fd7.

pkozlowski-opensource pushed a commit that referenced this pull request Oct 12, 2023
This adds the support of `let index as myIndex` in `*ngFor` for the control flow migration.

Before: `@for (itm of items; track itm)`
After: `@for (itm of items; track itm; let myIndex = $index)`

PR Close #52183
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 12, 2023
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
…r#52183)

This adds the support of `let index as myIndex` in `*ngFor` for the control flow migration.

Before: `@for (itm of items; track itm)`
After: `@for (itm of items; track itm; let myIndex = $index)`

PR Close angular#52183
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: migrations Issues related to `ng update`/`ng generate` migrations core: control flow Issues related to the built-in control flow (@if, @for, @switch) target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants