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

Function warnIfDestroyed

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

Source from the content-addressed store, hash-verified

858}
859
860function warnIfDestroyed(destroyed: boolean): void {
861 if (destroyed) {
862 console.warn(
863 formatRuntimeError(
864 RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED,
865 'This instance of the `ApplicationRef` has already been destroyed.',
866 ),
867 );
868 }
869}
870
871export function remove<T>(list: T[], el: T): void {
872 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