@@ -985,14 +985,14 @@ describe('compiler compliance: styling', () => {
985
985
…
986
986
hostBindings: function MyComponent_HostBindings(rf, ctx, elIndex) {
987
987
if (rf & 1) {
988
- $r3$.ɵelementHostAttrs(ctx, $e0_attrs$);
989
- $r3$.ɵelementStyling ($e0_classBindings$, $e0_styleBindings$, $r3$.ɵdefaultStyleSanitizer, ctx );
988
+ $r3$.ɵelementHostAttrs($e0_attrs$);
989
+ $r3$.ɵelementHostStyling ($e0_classBindings$, $e0_styleBindings$, $r3$.ɵdefaultStyleSanitizer);
990
990
}
991
991
if (rf & 2) {
992
- $r3$.ɵelementStylingMap(elIndex, ctx.myClass, ctx.myStyle, ctx );
993
- $r3$.ɵelementStyleProp(elIndex, 0, ctx.myColorProp, null, ctx );
994
- $r3$.ɵelementClassProp(elIndex, 0, ctx.myFooClass, ctx );
995
- $r3$.ɵelementStylingApply(elIndex, ctx );
992
+ $r3$.ɵelementHostStylingMap( ctx.myClass, ctx.myStyle);
993
+ $r3$.ɵelementHostStyleProp( 0, ctx.myColorProp);
994
+ $r3$.ɵelementHostClassProp( 0, ctx.myFooClass);
995
+ $r3$.ɵelementHostStylingApply( );
996
996
}
997
997
},
998
998
consts: 0,
@@ -1046,15 +1046,15 @@ describe('compiler compliance: styling', () => {
1046
1046
…
1047
1047
hostBindings: function MyComponent_HostBindings(rf, ctx, elIndex) {
1048
1048
if (rf & 1) {
1049
- $r3$.ɵelementStyling (_c0, _c1, $r3$.ɵdefaultStyleSanitizer, ctx );
1049
+ $r3$.ɵelementHostStyling (_c0, _c1, $r3$.ɵdefaultStyleSanitizer);
1050
1050
}
1051
1051
if (rf & 2) {
1052
- $r3$.ɵelementStylingMap(elIndex, ctx.myClasses, ctx.myStyle, ctx );
1053
- $r3$.ɵelementStyleProp(elIndex, 0, ctx.myHeightProp, "pt", ctx );
1054
- $r3$.ɵelementStyleProp(elIndex, 1, ctx.myWidthProp, null, ctx );
1055
- $r3$.ɵelementClassProp(elIndex, 0, ctx.myBarClass, ctx );
1056
- $r3$.ɵelementClassProp(elIndex, 1, ctx.myFooClass, ctx );
1057
- $r3$.ɵelementStylingApply(elIndex, ctx );
1052
+ $r3$.ɵelementHostStylingMap( ctx.myClasses, ctx.myStyle);
1053
+ $r3$.ɵelementHostStyleProp( 0, ctx.myHeightProp, "pt");
1054
+ $r3$.ɵelementHostStyleProp( 1, ctx.myWidthProp);
1055
+ $r3$.ɵelementHostClassProp( 0, ctx.myBarClass);
1056
+ $r3$.ɵelementHostClassProp( 1, ctx.myFooClass);
1057
+ $r3$.ɵelementHostStylingApply( );
1058
1058
}
1059
1059
},
1060
1060
consts: 0,
@@ -1115,7 +1115,7 @@ describe('compiler compliance: styling', () => {
1115
1115
if (rf & 2) {
1116
1116
$r3$.ɵelementStylingMap(0, ctx.myClassExp, ctx.myStyleExp);
1117
1117
$r3$.ɵelementStyleProp(0, 0, ctx.myHeightExp, null, true);
1118
- $r3$.ɵelementClassProp(0, 0, ctx.myBarClassExp, null, true);
1118
+ $r3$.ɵelementClassProp(0, 0, ctx.myBarClassExp, true);
1119
1119
$r3$.ɵelementStylingApply(0);
1120
1120
}
1121
1121
},
@@ -1127,13 +1127,13 @@ describe('compiler compliance: styling', () => {
1127
1127
…
1128
1128
hostBindings: function MyComponent_HostBindings(rf, ctx, elIndex) {
1129
1129
if (rf & 1) {
1130
- $r3$.ɵelementStyling (_c0, _c1, $r3$.ɵdefaultStyleSanitizer, ctx );
1130
+ $r3$.ɵelementHostStyling (_c0, _c1, $r3$.ɵdefaultStyleSanitizer);
1131
1131
}
1132
1132
if (rf & 2) {
1133
- $r3$.ɵelementStylingMap(elIndex, ctx.myClassExp, ctx.myStyleExp, ctx );
1134
- $r3$.ɵelementStyleProp(elIndex, 0, ctx.myWidthExp, null, ctx , true);
1135
- $r3$.ɵelementClassProp(elIndex, 0, ctx.myFooClassExp, ctx , true);
1136
- $r3$.ɵelementStylingApply(elIndex, ctx );
1133
+ $r3$.ɵelementHostStylingMap( ctx.myClassExp, ctx.myStyleExp);
1134
+ $r3$.ɵelementHostStyleProp( 0, ctx.myWidthExp, null, true);
1135
+ $r3$.ɵelementHostClassProp( 0, ctx.myFooClassExp, true);
1136
+ $r3$.ɵelementHostStylingApply( );
1137
1137
}
1138
1138
},
1139
1139
` ;
@@ -1195,33 +1195,33 @@ describe('compiler compliance: styling', () => {
1195
1195
…
1196
1196
function ClassDirective_HostBindings(rf, ctx, elIndex) {
1197
1197
if (rf & 1) {
1198
- $r3$.ɵelementStyling(null, null, null, ctx );
1198
+ $r3$.ɵelementHostStyling( );
1199
1199
}
1200
1200
if (rf & 2) {
1201
- $r3$.ɵelementStylingMap(elIndex, ctx.myClassMap, null, ctx );
1202
- $r3$.ɵelementStylingApply(elIndex, ctx );
1201
+ $r3$.ɵelementHostStylingMap( ctx.myClassMap);
1202
+ $r3$.ɵelementHostStylingApply( );
1203
1203
}
1204
1204
}
1205
1205
…
1206
1206
function WidthDirective_HostBindings(rf, ctx, elIndex) {
1207
1207
if (rf & 1) {
1208
- $r3$.ɵelementStyling ($widthDir_classes$, $widthDir_styles$, null, ctx );
1208
+ $r3$.ɵelementHostStyling ($widthDir_classes$, $widthDir_styles$);
1209
1209
}
1210
1210
if (rf & 2) {
1211
- $r3$.ɵelementStyleProp(elIndex, 0, ctx.myWidth, null, ctx );
1212
- $r3$.ɵelementClassProp(elIndex, 0, ctx.myFooClass, ctx );
1213
- $r3$.ɵelementStylingApply(elIndex, ctx );
1211
+ $r3$.ɵelementHostStyleProp( 0, ctx.myWidth);
1212
+ $r3$.ɵelementHostClassProp( 0, ctx.myFooClass);
1213
+ $r3$.ɵelementHostStylingApply( );
1214
1214
}
1215
1215
}
1216
1216
…
1217
1217
function HeightDirective_HostBindings(rf, ctx, elIndex) {
1218
1218
if (rf & 1) {
1219
- $r3$.ɵelementStyling ($heightDir_classes$, $heightDir_styles$, null, ctx );
1219
+ $r3$.ɵelementHostStyling ($heightDir_classes$, $heightDir_styles$);
1220
1220
}
1221
1221
if (rf & 2) {
1222
- $r3$.ɵelementStyleProp(elIndex, 0, ctx.myHeight, null, ctx );
1223
- $r3$.ɵelementClassProp(elIndex, 0, ctx.myBarClass, ctx );
1224
- $r3$.ɵelementStylingApply(elIndex, ctx );
1222
+ $r3$.ɵelementHostStyleProp( 0, ctx.myHeight);
1223
+ $r3$.ɵelementHostClassProp( 0, ctx.myBarClass);
1224
+ $r3$.ɵelementHostStylingApply( );
1225
1225
}
1226
1226
}
1227
1227
…
@@ -1276,14 +1276,14 @@ describe('compiler compliance: styling', () => {
1276
1276
hostBindings: function MyComponent_HostBindings(rf, ctx, elIndex) {
1277
1277
if (rf & 1) {
1278
1278
$r3$.ɵallocHostVars(2);
1279
- $r3$.ɵelementHostAttrs(ctx, $_c0$);
1280
- $r3$.ɵelementStyling (null, null, $r3$.ɵdefaultStyleSanitizer, ctx );
1279
+ $r3$.ɵelementHostAttrs($_c0$);
1280
+ $r3$.ɵelementHostStyling (null, null, $r3$.ɵdefaultStyleSanitizer);
1281
1281
}
1282
1282
if (rf & 2) {
1283
1283
$r3$.ɵelementProperty(elIndex, "id", $r3$.ɵbind(ctx.id), null, true);
1284
1284
$r3$.ɵelementProperty(elIndex, "title", $r3$.ɵbind(ctx.title), null, true);
1285
- $r3$.ɵelementStylingMap(elIndex, ctx.myClass, ctx.myStyle, ctx );
1286
- $r3$.ɵelementStylingApply(elIndex, ctx );
1285
+ $r3$.ɵelementHostStylingMap( ctx.myClass, ctx.myStyle);
1286
+ $r3$.ɵelementHostStylingApply( );
1287
1287
}
1288
1288
}
1289
1289
` ;
@@ -1323,14 +1323,14 @@ describe('compiler compliance: styling', () => {
1323
1323
hostBindings: function WidthDirective_HostBindings(rf, ctx, elIndex) {
1324
1324
if (rf & 1) {
1325
1325
$r3$.ɵallocHostVars(2);
1326
- $r3$.ɵelementStyling ($_c0$, $_c1$, null, ctx );
1326
+ $r3$.ɵelementHostStyling ($_c0$, $_c1$);
1327
1327
}
1328
1328
if (rf & 2) {
1329
1329
$r3$.ɵelementProperty(elIndex, "id", $r3$.ɵbind(ctx.id), null, true);
1330
1330
$r3$.ɵelementProperty(elIndex, "title", $r3$.ɵbind(ctx.title), null, true);
1331
- $r3$.ɵelementStyleProp(elIndex, 0, ctx.myWidth, null, ctx );
1332
- $r3$.ɵelementClassProp(elIndex, 0, ctx.myFooClass, ctx );
1333
- $r3$.ɵelementStylingApply(elIndex, ctx );
1331
+ $r3$.ɵelementHostStyleProp( 0, ctx.myWidth);
1332
+ $r3$.ɵelementHostClassProp( 0, ctx.myFooClass);
1333
+ $r3$.ɵelementHostStylingApply( );
1334
1334
}
1335
1335
}
1336
1336
` ;
0 commit comments