• Overview
@angular/core

PLATFORM_INITIALIZER

constant
deprecatedsince v19.0

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)[]>;
    
    
Jump to details