MCPcopy
hub / github.com/angular/angular / destroyPlatform

Function destroyPlatform

packages/core/src/platform/platform.ts:158–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 * @publicApi
157 */
158export function destroyPlatform(): void {
159 if (typeof ngDevMode !== 'undefined' && ngDevMode) {
160 _unregisterAiTools?.();
161 _unregisterAiTools = null;
162 }
163
164 getPlatform()?.destroy();
165}
166
167/**
168 * The goal of this function is to bootstrap a platform injector,

Calls 2

getPlatformFunction · 0.85
destroyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…