@@ -317,7 +317,7 @@ describe('compiler compliance', () => {
317
317
}
318
318
if (rf & 2) {
319
319
$r3$.ɵɵselect(0);
320
- $r3$.ɵɵelementProperty(0, "id", $r3$.ɵɵbind( ctx.id) );
320
+ $r3$.ɵɵproperty( "id", ctx.id);
321
321
}
322
322
}
323
323
` ;
@@ -354,6 +354,14 @@ describe('compiler compliance', () => {
354
354
}
355
355
} ;
356
356
357
+ ///////////////
358
+ // TODO(FW-1273): The code generated below is adding extra parens, and we need to stop
359
+ // generating those.
360
+ //
361
+ // For example:
362
+ // `$r3$.ɵɵproperty("ternary", (ctx.cond ? $r3$.ɵɵpureFunction1(8, $c0$, ctx.a): $c1$));`
363
+ ///////////////
364
+
357
365
const $e0_attrs$ = [ ] ;
358
366
const factory =
359
367
'factory: function MyComponent_Factory(t) { return new (t || MyComponent)(); }' ;
@@ -365,10 +373,10 @@ describe('compiler compliance', () => {
365
373
}
366
374
if (rf & 2) {
367
375
$r3$.ɵɵselect(0);
368
- $r3$.ɵɵelementProperty(0, "ternary", $r3$.ɵɵbind(( ctx.cond ? $r3$.ɵɵpureFunction1(8, $c0$, ctx.a): $c1$) ));
369
- $r3$.ɵɵelementProperty(0, "pipe", $r3$.ɵɵbind($r3$. ɵɵpipeBind3(1, 4, ctx.value, 1, 2) ));
370
- $r3$.ɵɵelementProperty(0, "and", $r3$.ɵɵbind(( ctx.cond && $r3$.ɵɵpureFunction1(10, $c0$, ctx.b) )));
371
- $r3$.ɵɵelementProperty(0, "or", $r3$.ɵɵbind(( ctx.cond || $r3$.ɵɵpureFunction1(12, $c0$, ctx.c) )));
376
+ $r3$.ɵɵproperty( "ternary", ( ctx.cond ? $r3$.ɵɵpureFunction1(8, $c0$, ctx.a): $c1$));
377
+ $r3$.ɵɵproperty( "pipe", $r3$.ɵɵpipeBind3(1, 4, ctx.value, 1, 2));
378
+ $r3$.ɵɵproperty( "and", ( ctx.cond && $r3$.ɵɵpureFunction1(10, $c0$, ctx.b)));
379
+ $r3$.ɵɵproperty( "or", ( ctx.cond || $r3$.ɵɵpureFunction1(12, $c0$, ctx.c)));
372
380
}
373
381
}
374
382
` ;
@@ -880,7 +888,7 @@ describe('compiler compliance', () => {
880
888
}
881
889
if (rf & 2) {
882
890
$r3$.ɵɵselect(0);
883
- $r3$.ɵɵelementProperty(0, "names", $r3$.ɵɵbind($r3$. ɵɵpureFunction1(1, $e0_ff$, ctx.customName) ));
891
+ $r3$.ɵɵproperty( "names", $r3$.ɵɵpureFunction1(1, $e0_ff$, ctx.customName));
884
892
}
885
893
},
886
894
directives: [MyComp],
@@ -963,9 +971,8 @@ describe('compiler compliance', () => {
963
971
}
964
972
if (rf & 2) {
965
973
$r3$.ɵɵselect(0);
966
- $r3$.ɵɵelementProperty(
967
- 0, "names",
968
- $r3$.ɵɵbind($r3$.ɵɵpureFunctionV(1, $e0_ff$, [ctx.n0, ctx.n1, ctx.n2, ctx.n3, ctx.n4, ctx.n5, ctx.n6, ctx.n7, ctx.n8])));
974
+ $r3$.ɵɵproperty("names",
975
+ $r3$.ɵɵpureFunctionV(1, $e0_ff$, [ctx.n0, ctx.n1, ctx.n2, ctx.n3, ctx.n4, ctx.n5, ctx.n6, ctx.n7, ctx.n8]));
969
976
}
970
977
},
971
978
directives: [MyComp],
@@ -1028,7 +1035,7 @@ describe('compiler compliance', () => {
1028
1035
}
1029
1036
if (rf & 2) {
1030
1037
$r3$.ɵɵselect(0);
1031
- $r3$.ɵɵelementProperty(0, "config", $r3$.ɵɵbind($r3$. ɵɵpureFunction1(1, $e0_ff$, ctx.name) ));
1038
+ $r3$.ɵɵproperty( "config", $r3$.ɵɵpureFunction1(1, $e0_ff$, ctx.name));
1032
1039
}
1033
1040
},
1034
1041
directives: [ObjectComp],
@@ -1097,9 +1104,9 @@ describe('compiler compliance', () => {
1097
1104
}
1098
1105
if (rf & 2) {
1099
1106
$r3$.ɵɵselect(0);
1100
- $r3$.ɵɵelementProperty (
1101
- 0, "config",
1102
- $r3$.ɵɵbind($r3$. ɵɵpureFunction2(5, $e0_ff_2$, ctx.name, $r3$.ɵɵpureFunction1(3, $e0_ff_1$, $r3$.ɵɵpureFunction1(1, $e0_ff$, ctx.duration) ))));
1107
+ $r3$.ɵɵproperty (
1108
+ "config",
1109
+ $r3$.ɵɵpureFunction2(5, $e0_ff_2$, ctx.name, $r3$.ɵɵpureFunction1(3, $e0_ff_1$, $r3$.ɵɵpureFunction1(1, $e0_ff$, ctx.duration))));
1103
1110
}
1104
1111
},
1105
1112
directives: [NestedComp],
@@ -1261,9 +1268,9 @@ describe('compiler compliance', () => {
1261
1268
}
1262
1269
if (rf & 2) {
1263
1270
$r3$.ɵɵselect(0);
1264
- $r3$.ɵɵelementProperty(0, "ngIf", $r3$.ɵɵbind( ctx.visible) );
1271
+ $r3$.ɵɵproperty( "ngIf", ctx.visible);
1265
1272
$r3$.ɵɵselect(1);
1266
- $r3$.ɵɵelementProperty(1, "ngIf", $r3$.ɵɵbind( ctx.visible) );
1273
+ $r3$.ɵɵproperty( "ngIf", ctx.visible);
1267
1274
}
1268
1275
}
1269
1276
` ;
@@ -2350,7 +2357,7 @@ describe('compiler compliance', () => {
2350
2357
if (rf & 2) {
2351
2358
const $app$ = $i0$.ɵɵnextContext();
2352
2359
$r3$.ɵɵselect(3);
2353
- $i0$.ɵɵelementProperty(3, "ngIf", $i0$.ɵɵbind($ app$.showing) );
2360
+ $i0$.ɵɵproperty( "ngIf", $app$.showing);
2354
2361
}
2355
2362
}
2356
2363
@@ -2361,7 +2368,7 @@ describe('compiler compliance', () => {
2361
2368
}
2362
2369
if (rf & 2) {
2363
2370
$i0$.ɵɵselect(0);
2364
- $i0$.ɵɵelementProperty(0, "ngForOf", $i0$.ɵɵbind( ctx.items) );
2371
+ $i0$.ɵɵproperty( "ngForOf", ctx.items);
2365
2372
}
2366
2373
}` ;
2367
2374
@@ -2442,9 +2449,9 @@ describe('compiler compliance', () => {
2442
2449
}
2443
2450
if (rf & 2) {
2444
2451
$r3$.ɵɵselect(0);
2445
- $r3$.ɵɵelementProperty(0, "name", $r3$.ɵɵbind( ctx.name1) );
2452
+ $r3$.ɵɵproperty( "name", ctx.name1);
2446
2453
$r3$.ɵɵselect(1);
2447
- $r3$.ɵɵelementProperty(1, "name", $r3$.ɵɵbind( ctx.name2) );
2454
+ $r3$.ɵɵproperty( "name", ctx.name2);
2448
2455
}
2449
2456
},
2450
2457
directives: [LifecycleComp],
@@ -2576,7 +2583,7 @@ describe('compiler compliance', () => {
2576
2583
}
2577
2584
if (rf & 2) {
2578
2585
$r3$.ɵɵselect(1);
2579
- $r3$.ɵɵelementProperty(1, "forOf",$r3$.ɵɵbind( ctx.items) );
2586
+ $r3$.ɵɵproperty( "forOf", ctx.items);
2580
2587
}
2581
2588
},
2582
2589
directives: function() { return [ForOfDirective]; },
@@ -2658,7 +2665,7 @@ describe('compiler compliance', () => {
2658
2665
}
2659
2666
if (rf & 2) {
2660
2667
$r3$.ɵɵselect(1);
2661
- $r3$.ɵɵelementProperty(1, "forOf", $r3$.ɵɵbind( ctx.items) );
2668
+ $r3$.ɵɵproperty( "forOf", ctx.items);
2662
2669
}
2663
2670
},
2664
2671
directives: function() { return [ForOfDirective]; },
@@ -2743,7 +2750,7 @@ describe('compiler compliance', () => {
2743
2750
$r3$.ɵɵselect(2);
2744
2751
$r3$.ɵɵtextBinding(2, $r3$.ɵɵinterpolation1("", IDENT.name, ""));
2745
2752
$r3$.ɵɵselect(4);
2746
- $r3$.ɵɵelementProperty(4, "forOf", $r3$.ɵɵbind( IDENT.infos) );
2753
+ $r3$.ɵɵproperty( "forOf", IDENT.infos);
2747
2754
}
2748
2755
}
2749
2756
@@ -2762,7 +2769,7 @@ describe('compiler compliance', () => {
2762
2769
}
2763
2770
if (rf & 2) {
2764
2771
$r3$.ɵɵselect(1);
2765
- $r3$.ɵɵelementProperty(1, "forOf", $r3$.ɵɵbind( ctx.items) );
2772
+ $r3$.ɵɵproperty( "forOf", ctx.items);
2766
2773
}
2767
2774
},
2768
2775
directives: function () { return [ForOfDirective]; },
0 commit comments