forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): handle trackBy and aliased index in control flow migration (…
…angular#52423) Currently, the migration always use `$index` in the migrated trackBy function, whereas this variable might be aliased. The compiler then errors with: ``` error TS2339: Property '$index' does not exist on type 'UsersComponent'. 110 @for (user of users; track byId($index, user); let i = $index) { ``` This commit updates the migration to use the aliased index if there is one. PR Close angular#52423
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters