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

Function cleanupLContainer

packages/core/src/hydration/cleanup.ts:91–105  ·  view source on GitHub ↗
(lContainer: LContainer)

Source from the content-addressed store, hash-verified

89 * cleanup function for each one.
90 */
91export function cleanupLContainer(lContainer: LContainer) {
92 removeDehydratedViews(lContainer);
93
94 // The host could be an LView if this container is on a component node.
95 // In this case, descend into host LView for further cleanup. See also
96 // LContainer[HOST] docs for additional information.
97 const hostLView = lContainer[HOST];
98 if (isLView(hostLView)) {
99 cleanupLView(hostLView);
100 }
101
102 for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
103 cleanupLView(lContainer[i] as LView);
104 }
105}
106
107/**
108 * Walks over `LContainer`s and components registered within

Callers 4

cleanupParentContainerFunction · 0.90
cleanupLViewFunction · 0.85
cleanupDehydratedViewsFunction · 0.85

Calls 3

isLViewFunction · 0.90
removeDehydratedViewsFunction · 0.85
cleanupLViewFunction · 0.85

Tested by

no test coverage detected