createPlatformFactory
function
Creates a factory for a platform. Can be used to provide or override Providers
specific to your applciation's runtime needs, such as PLATFORM_INITIALIZER
and PLATFORM_ID
.
createPlatformFactory(parentPlatformFactory: (extraProviders?: StaticProvider[]) => PlatformRef, name: string, providers: StaticProvider[] = []): (extraProviders?: StaticProvider[]) => PlatformRef
Parameters
parentPlatformFactory | (extraProviders?: StaticProvider[]) => PlatformRef | Another platform factory to modify. Allows you to compose factories to build up configurations that might be required by different libraries or parts of the application. |
name | string | Identifies the new platform factory. |
providers | StaticProvider[] | A set of dependency providers for platforms created with the new factory. Optional. Default is |
Returns
(extraProviders?: StaticProvider[]) => PlatformRef
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/core/createPlatformFactory