refactor(ivy): migrate all host-specific styling instructions to element-level styling instructions (#30336)
This patch removes all host-specific styling instructions in favor of using element-level instructions instead. Because of the previous patches that made sure `select(n)` worked between styling calls, all host level instructions are not needed anymore. This patch changes each of those instruction calls to use any of the `elementStyling*`, `elementStyle*` and `elementClass*` styling instructions instead. PR Close #30336
This commit is contained in:

committed by
Alex Rickabaugh

parent
452f121486
commit
c016e2c4ec
@ -1777,13 +1777,13 @@ describe('ngtsc behavioral tests', () => {
|
||||
i0.\u0275\u0275listener("click", function FooCmp_click_HostBindingHandler($event) { return ctx.onClick($event); });
|
||||
i0.\u0275\u0275listener("click", function FooCmp_click_HostBindingHandler($event) { return ctx.onBodyClick($event); }, false, i0.\u0275\u0275resolveBody);
|
||||
i0.\u0275\u0275listener("change", function FooCmp_change_HostBindingHandler($event) { return ctx.onChange(ctx.arg1, ctx.arg2, ctx.arg3); });
|
||||
i0.\u0275\u0275elementHostStyling(_c0);
|
||||
i0.\u0275\u0275elementStyling(_c0);
|
||||
}
|
||||
if (rf & 2) {
|
||||
i0.\u0275\u0275elementAttribute(elIndex, "hello", i0.\u0275\u0275bind(ctx.foo));
|
||||
i0.\u0275\u0275property("prop", ctx.bar, null, true);
|
||||
i0.\u0275\u0275elementHostClassProp(0, ctx.someClass);
|
||||
i0.\u0275\u0275elementHostStylingApply();
|
||||
i0.\u0275\u0275elementClassProp(0, ctx.someClass);
|
||||
i0.\u0275\u0275elementStylingApply();
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
Reference in New Issue
Block a user