Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

fix(Compiler): Fix zombie nodes of template->deferred #1562

Closed
wants to merge 3 commits into from

Conversation

matanlurey
Copy link
Contributor

A longer description and discussion on #1539.

Closes #1539.

matanlurey added a commit that referenced this pull request Aug 11, 2018
tl;dr: There is a compiler optimization that tries to detect if `ViewContainerRef` is every used for a given `<template>`, and if not, avoids some code paths. That causes problems for `@deferred`, which is more or less `*deferred`, with special compiler handling.

This treats deferred templates the same as `<template *ngIf>`, which fixes the phantom DOM issue of #1539. Additionally, added a race-condition fix around the deferred libraries being loaded _after_ the parent view was created.

Closes #1539.
Closes #1562.

PiperOrigin-RevId: 208284237
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants