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

Function destroyLView

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

Source from the content-addressed store, hash-verified

314 * @param lView The view to be destroyed.
315 */
316export function destroyLView(tView: TView, lView: LView) {
317 if (isDestroyed(lView)) {
318 return;
319 }
320 const renderer = lView[RENDERER];
321
322 if (renderer.destroyNode) {
323 applyView(tView, lView, renderer, WalkTNodeTreeAction.Destroy, null, null);
324 }
325 destroyViewTree(lView);
326}
327
328/**
329 * 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