Skip to content

Commit

Permalink
fixup! fix(ivy): avoid destroy renderer method invocation for child v…
Browse files Browse the repository at this point in the history
…iews
  • Loading branch information
AndrewKushnir committed Dec 11, 2018
1 parent b73efa2 commit cc0466c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/test/render3/component_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ describe('component', () => {

});

it('should not invoke renderer destroy method for child views', () => {
it('should not invoke renderer destroy method for embedded views', () => {
let comp: Comp;

function MyComponent_div_Template_2(rf: any, ctx: any) {
if (rf & 1) {
if (rf & RenderFlags.Create) {
elementStart(0, 'div');
text(1, 'Child view');
elementEnd();
Expand All @@ -181,13 +181,13 @@ it('should not invoke renderer destroy method for child views', () => {
* <div *ngIf="visible">Child view</div>
*/
template: function(rf: RenderFlags, ctx: Comp) {
if (rf & 1) {
if (rf & RenderFlags.Create) {
elementStart(0, 'div');
text(1, 'Root view');
elementEnd();
template(2, MyComponent_div_Template_2, 2, 0, null, [1, 'ngIf']);
}
if (rf & 2) {
if (rf & RenderFlags.Update) {
elementProperty(2, 'ngIf', bind(ctx.visible));
}
}
Expand Down

0 comments on commit cc0466c

Please sign in to comment.