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

Function detachMovedView

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

Source from the content-addressed store, hash-verified

296}
297
298export function detachMovedView(declarationContainer: LContainer, lView: LView) {
299 ngDevMode && assertLContainer(declarationContainer);
300 ngDevMode &&
301 assertDefined(
302 declarationContainer[MOVED_VIEWS],
303 'A projected view should belong to a non-empty projected views collection',
304 );
305 const movedViews = declarationContainer[MOVED_VIEWS]!;
306 const declarationViewIndex = movedViews.indexOf(lView);
307 movedViews.splice(declarationViewIndex, 1);
308}
309
310/**
311 * 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