• Overview
@angular/core

destroyPlatform

function
stable

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;

destroyPlatform

void

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

@returnsvoid

Usage Notes

This function should not be used when multiple platforms are enabled (e.g., SSR), as it will be a no-op.

Jump to details