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

Function destroyLView

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

Source from the content-addressed store, hash-verified

307 * @param lView The view to be destroyed.
308 */
309export function destroyLView(tView: TView, lView: LView) {
310 if (isDestroyed(lView)) {
311 return;
312 }
313 const renderer = lView[RENDERER];
314
315 if (renderer.destroyNode) {
316 applyView(tView, lView, renderer, WalkTNodeTreeAction.Destroy, null, null);
317 }
318 destroyViewTree(lView);
319}
320
321/**
322 * Calls onDestroys hooks for all directives and pipes in a given view and then removes all

Callers 5

removeMethod · 0.90
recreateFunction · 0.90
destroyMethod · 0.90
destroyMethod · 0.90

Calls 3

isDestroyedFunction · 0.90
applyViewFunction · 0.85
destroyViewTreeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…