W3cubDocs

/Angular

createPlatformFactory

Creates a factory for a platform. Can be used to provide or override Providers specific to your application's runtime needs, such as PLATFORM_INITIALIZER and PLATFORM_ID.

API

function createPlatformFactory(
  parentPlatformFactory:
    | ((extraProviders?: StaticProvider[] | undefined) => PlatformRef)
    | null,
  name: string,
  providers?: StaticProvider[],
): (extraProviders?: StaticProvider[] | undefined) => PlatformRef;

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