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

Function detachMovedView

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

Source from the content-addressed store, hash-verified

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