MCPcopy Create free account
hub / github.com/angular/angular / destroyLView

Function destroyLView

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

Source from the content-addressed store, hash-verified

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

Callers 6

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