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

Function detachMovedView

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

Source from the content-addressed store, hash-verified

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