W3cubDocs

/Angular

PLATFORM_INITIALIZER

A function that is executed when a platform is initialized.

Deprecation warning

from v19.0.0, use providePlatformInitializer instead

API

const PLATFORM_INITIALIZER: InjectionToken<readonly (() => void)[]>;

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/PLATFORM_INITIALIZER