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

Function hasOnDestroy

packages/core/src/di/r3_injector.ts:710–716  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

708}
709
710function hasOnDestroy(value: any): value is OnDestroy {
711 return (
712 value !== null &&
713 typeof value === 'object' &&
714 typeof (value as OnDestroy).ngOnDestroy === 'function'
715 );
716}
717
718function couldBeInjectableType(value: any): value is ProviderToken<any> {
719 return (

Callers 1

hydrateMethod · 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…