@@ -3414,6 +3414,20 @@ import { Component } from \\"@angular/core\\";
3414
3414
<div>{{option}}</div>
3415
3415
</ng-container>
3416
3416
</ng-container>
3417
+ <ng-container
3418
+ *ngFor=\\"let option of ['a', 'b', 'c']; trackBy: trackByOption1\\"
3419
+ >
3420
+ <ng-container>
3421
+ <div>{{option}}</div>
3422
+ </ng-container>
3423
+ </ng-container>
3424
+ <select>
3425
+ <ng-container
3426
+ *ngFor=\\"let option of ['d', 'e', 'f']; trackBy: trackByOption2\\"
3427
+ >
3428
+ <option [attr.value]=\\"option\\">{{option}}</option>
3429
+ </ng-container>
3430
+ </select>
3417
3431
</div>
3418
3432
\`,
3419
3433
styles: [
@@ -3425,9 +3439,16 @@ import { Component } from \\"@angular/core\\";
3425
3439
],
3426
3440
})
3427
3441
export default class BasicForFragment {
3442
+ id = \\"xyz\\";
3428
3443
trackByOption0(_, option) {
3429
3444
return \`key-\${option}\`;
3430
3445
}
3446
+ trackByOption1(_, option) {
3447
+ return \`\${this.id}-\${option}\`;
3448
+ }
3449
+ trackByOption2(_, option) {
3450
+ return \`\${this.id}-\${option}\`;
3451
+ }
3431
3452
}
3432
3453
3433
3454
@NgModule({
@@ -11081,6 +11102,20 @@ import { Component } from \\"@angular/core\\";
11081
11102
<div>{{option}}</div>
11082
11103
</ng-container>
11083
11104
</ng-container>
11105
+ <ng-container
11106
+ *ngFor=\\"let option of ['a', 'b', 'c']; trackBy: trackByOption1\\"
11107
+ >
11108
+ <ng-container>
11109
+ <div>{{option}}</div>
11110
+ </ng-container>
11111
+ </ng-container>
11112
+ <select>
11113
+ <ng-container
11114
+ *ngFor=\\"let option of ['d', 'e', 'f']; trackBy: trackByOption2\\"
11115
+ >
11116
+ <option [attr.value]=\\"option\\">{{option}}</option>
11117
+ </ng-container>
11118
+ </select>
11084
11119
</div>
11085
11120
\`,
11086
11121
styles: [
@@ -11092,9 +11127,16 @@ import { Component } from \\"@angular/core\\";
11092
11127
],
11093
11128
})
11094
11129
export default class BasicForFragment {
11130
+ id = \\"xyz\\";
11095
11131
trackByOption0(_, option) {
11096
11132
return \`key-\${option}\`;
11097
11133
}
11134
+ trackByOption1(_, option) {
11135
+ return \`\${this.id}-\${option}\`;
11136
+ }
11137
+ trackByOption2(_, option) {
11138
+ return \`\${this.id}-\${option}\`;
11139
+ }
11098
11140
}
11099
11141
11100
11142
@NgModule({
0 commit comments