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

Function destroyLView

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

Source from the content-addressed store, hash-verified

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