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

Function leaveView

packages/core/src/render3/state.ts:725–737  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

723 * because for performance reasons we don't release `LFrame` but rather keep it for next use.
724 */
725export function leaveView() {
726 const oldLFrame = leaveViewLight();
727 oldLFrame.isParent = true;
728 oldLFrame.tView = null!;
729 oldLFrame.selectedIndex = -1;
730 oldLFrame.contextLView = null;
731 oldLFrame.elementDepthCount = 0;
732 oldLFrame.currentDirectiveIndex = -1;
733 oldLFrame.currentNamespace = null;
734 oldLFrame.bindingRootIndex = -1;
735 oldLFrame.bindingIndex = -1;
736 oldLFrame.currentQueryIndex = 0;
737}
738
739export function nextContextImpl<T = any>(level: number): T {
740 const contextLView = (instructionState.lFrame.contextLView = walkUpViews(

Callers 9

cleanUpMethod · 0.90
leaveViewMethod · 0.90
di_spec.tsFile · 0.90
providers_spec.tsFile · 0.90
createComponentRefMethod · 0.90
renderViewFunction · 0.90
refreshViewFunction · 0.90

Calls 1

leaveViewLightFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…