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

Function removeLViewOnDestroy

packages/core/src/render3/util/view_utils.ts:301–308  ·  view source on GitHub ↗
(lView: LView, onDestroyCallback: () => void)

Source from the content-addressed store, hash-verified

299 * Removes previously registered LView-specific destroy callback.
300 */
301export function removeLViewOnDestroy(lView: LView, onDestroyCallback: () => void) {
302 if (lView[ON_DESTROY_HOOKS] === null) return;
303
304 const destroyCBIdx = lView[ON_DESTROY_HOOKS].indexOf(onDestroyCallback);
305 if (destroyCBIdx !== -1) {
306 lView[ON_DESTROY_HOOKS].splice(destroyCBIdx, 1);
307 }
308}
309
310/**
311 * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of

Callers 3

onDestroyMethod · 0.90
ɵɵdeferFunction · 0.90
pollDomTriggerFunction · 0.90

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…