revert: refactor(ivy): remove styling state storage and introduce direct style writing (#32259)

This reverts commit 15aeab1620.
This commit is contained in:
Matias Niemelä
2019-09-11 15:24:10 -07:00
parent bb9e61202c
commit 53dbff66d7
46 changed files with 1613 additions and 1727 deletions

View File

@ -483,11 +483,14 @@ describe('compiler compliance', () => {
vars: 2,
template: function MyComponent_Template(rf,ctx){
if (rf & 1) {
$r3$.ɵɵelement(0, "div");
$r3$.ɵɵelementStart(0, "div");
$r3$.ɵɵstyling();
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵstyleProp("background-color", ctx.color);
$r3$.ɵɵclassProp("error", ctx.error);
$r3$.ɵɵstylingApply();
}
},
encapsulation: 2