fix(ivy): ViewRef.detachFromAppRef should clean the DOM (#29159)

PR Close #29159
This commit is contained in:
Marc Laval
2019-03-07 16:09:12 +01:00
committed by Kara Erickson
parent 29f57e315e
commit eccbc785b3
5 changed files with 73 additions and 10 deletions

View File

@ -243,6 +243,15 @@ export function addRemoveViewFromContainer(
}
}
/**
* Detach a `LView` from the DOM by detaching its nodes.
*
* @param lView the `LView` to be detached.
*/
export function renderDetachView(lView: LView) {
walkTNodeTree(lView, WalkTNodeTreeAction.Detach, lView[RENDERER], null);
}
/**
* Traverses down and up the tree of views and containers to remove listeners and
* call onDestroy callbacks.