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

Function leaveViewLight

packages/core/src/render3/state.ts:701–707  ·  view source on GitHub ↗

* A lightweight version of leave which is used with DI. * * This function only resets `currentTNode` and `LView` as those are the only properties * used with DI (`enterDI()`). * * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where * as `leaveViewL

()

Source from the content-addressed store, hash-verified

699 * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.
700 */
701function leaveViewLight(): LFrame {
702 const oldLFrame = instructionState.lFrame;
703 instructionState.lFrame = oldLFrame.parent;
704 oldLFrame.currentTNode = null!;
705 oldLFrame.lView = null!;
706 return oldLFrame;
707}
708
709/**
710 * This is a lightweight version of the `leaveView` which is needed by the DI system.

Callers 1

leaveViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…