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

Function detachMovedView

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

Source from the content-addressed store, hash-verified

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