MCPcopy
hub / github.com/angular/angular / warnIfDestroyed

Function warnIfDestroyed

packages/core/src/application/application_ref.ts:849–858  ·  view source on GitHub ↗
(destroyed: boolean)

Source from the content-addressed store, hash-verified

847}
848
849function warnIfDestroyed(destroyed: boolean): void {
850 if (destroyed) {
851 console.warn(
852 formatRuntimeError(
853 RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED,
854 'This instance of the `ApplicationRef` has already been destroyed.',
855 ),
856 );
857 }
858}
859
860export function remove<T>(list: T[], el: T): void {
861 const index = list.indexOf(el);

Callers 5

bootstrapImplMethod · 0.85
ApplicationRefClass · 0.85
attachViewMethod · 0.85
detachViewMethod · 0.85
onDestroyMethod · 0.85

Calls 2

formatRuntimeErrorFunction · 0.90
warnMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…