填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

createPlatformFactory

为平台创建工厂。可用于提供或覆盖针对你的应用程序的运行时需求的 Providers,比如 PLATFORM_INITIALIZERPLATFORM_ID

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.

      
      createPlatformFactory(parentPlatformFactory: (extraProviders?: StaticProvider[]) => PlatformRef, name: string, providers: StaticProvider[] = []): (extraProviders?: StaticProvider[]) => PlatformRef
    
参数
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.

可选. 默认值是 `[]`.
返回值

(extraProviders?: StaticProvider[]) => PlatformRef