MCPcopy Index your code
hub / github.com/angular/angular / detachViewFromDOM

Function detachViewFromDOM

packages/core/src/render3/node_manipulation.ts:230–236  ·  view source on GitHub ↗
(tView: TView, lView: LView)

Source from the content-addressed store, hash-verified

228 * @param lView the `LView` to be detached.
229 */
230export function detachViewFromDOM(tView: TView, lView: LView) {
231 // When we remove a view from the DOM, we need to rerun afterRender hooks
232 // We don't necessarily needs to run change detection. DOM removal only requires
233 // change detection if animations are enabled (this notification is handled by animations).
234 lView[ENVIRONMENT].changeDetectionScheduler?.notify(NotificationSource.ViewDetachedFromDOM);
235 applyView(tView, lView, lView[RENDERER], WalkTNodeTreeAction.Detach, null, null);
236}
237
238/**
239 * Traverses down and up the tree of views and containers to remove listeners and

Callers 2

detachFromAppRefMethod · 0.90
removeViewFromDOMFunction · 0.85

Calls 2

applyViewFunction · 0.85
notifyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…