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

Method removeOnDestroy

packages/core/src/di/r3_injector.ts:568–573  ·  view source on GitHub ↗
(callback: () => void)

Source from the content-addressed store, hash-verified

566 }
567
568 private removeOnDestroy(callback: () => void): void {
569 const destroyCBIdx = this._onDestroyHooks.indexOf(callback);
570 if (destroyCBIdx !== -1) {
571 this._onDestroyHooks.splice(destroyCBIdx, 1);
572 }
573 }
574}
575
576function injectableDefOrInjectorDefFactory(token: ProviderToken<any>): FactoryFn<any> {

Callers 1

onDestroyMethod · 0.95

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected