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

Function onLViewDestroy

packages/core/src/defer/instructions.ts:218–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216 }
217
218 const onLViewDestroy = () => {
219 invokeAllTriggerCleanupFns(lDetails);
220 if (ssrUniqueId !== null) {
221 registry?.cleanup([ssrUniqueId]);
222 }
223 };
224
225 // When defer block is triggered - unsubscribe from LView destroy cleanup.
226 storeTriggerCleanupFn(TriggerType.Regular, lDetails, () =>

Callers

nothing calls this directly

Calls 2

cleanupMethod · 0.65

Tested by

no test coverage detected