fix(ivy): ViewRef.detachFromAppRef should clean the DOM (#29159)
PR Close #29159
This commit is contained in:

committed by
Kara Erickson

parent
29f57e315e
commit
eccbc785b3
@ -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.
|
||||
|
Reference in New Issue
Block a user