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

Function detachMovedView

packages/core/src/render3/node_manipulation.ts:290–300  ·  view source on GitHub ↗
(declarationContainer: LContainer, lView: LView)

Source from the content-addressed store, hash-verified

288}
289
290export function detachMovedView(declarationContainer: LContainer, lView: LView) {
291 ngDevMode && assertLContainer(declarationContainer);
292 ngDevMode &&
293 assertDefined(
294 declarationContainer[MOVED_VIEWS],
295 'A projected view should belong to a non-empty projected views collection',
296 );
297 const movedViews = declarationContainer[MOVED_VIEWS]!;
298 const declarationViewIndex = movedViews.indexOf(lView);
299 movedViews.splice(declarationViewIndex, 1);
300}
301
302/**
303 * A standalone function which destroys an LView,

Callers 3

detachFromAppRefMethod · 0.90
detachViewFunction · 0.90
cleanUpViewFunction · 0.85

Calls 3

assertLContainerFunction · 0.90
assertDefinedFunction · 0.90
indexOfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…