W3cubDocs

/Angular

destroyPlatform

Destroys the current Angular platform and all Angular applications on the page. Destroys all modules and listeners registered with the platform.

API

function destroyPlatform(): void;

Description

Destroys the current Angular platform and all Angular applications on the page. Destroys all modules and listeners registered with the platform.

This function should not be used in a server environment, as it will be a no-op.

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/destroyPlatform