Remove extra colon after track in angular @for control-flow (#17280)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
authored and GitHub committed 2025-04-14 08:10:04 +08:00
1 parent 9282520e0e
commit f3486cfbc5
4 files changed
+45 -1

No files matched your search

@@ -291,6 +291,12 @@ item of
<div *ngFor="item of items; let i = $index; track block"></div>
</div>
<div>
@for (item of items; let i = $index; let count = $count; track block) {}
<div *ngFor="item of items; let i = $index; let count = $count; track block"></div>
</div>
=====================================output=====================================
<ul>
@for (let item of items; index as i; trackBy: trackByFn) {
@@ -344,6 +350,14 @@ item of
<div *ngFor="item of items; let i = $index; track block"></div>
</div>
<div>
@for (item of items; let i = $index; let count = $count; track block) {}
<div
*ngFor="item of items; let i = $index; let count = $count; track block"
></div>
</div>
================================================================================
`;
@@ -58,3 +58,9 @@ item of
<div *ngFor="item of items; let i = $index; track block"></div>
</div>
<div>
@for (item of items; let i = $index; let count = $count; track block) {}
<div *ngFor="item of items; let i = $index; let count = $count; track block"></div>
</div>