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

Method removeOnDestroy

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

Source from the content-addressed store, hash-verified

561 }
562
563 private removeOnDestroy(callback: () => void): void {
564 const destroyCBIdx = this._onDestroyHooks.indexOf(callback);
565 if (destroyCBIdx !== -1) {
566 this._onDestroyHooks.splice(destroyCBIdx, 1);
567 }
568 }
569}
570
571function injectableDefOrInjectorDefFactory(token: ProviderToken<any>): FactoryFn<any> {

Callers 1

onDestroyMethod · 0.95

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected