createPlatformFactory

Creates a factory for a platform

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

参数

parentPlatformFactory

Type: ((extraProviders?: StaticProvider[]) => PlatformRef) | null.

name

Type: string.

providers

Type: StaticProvider[].

可选. 默认值是 [].

返回值

(extraProviders?: StaticProvider[]) => PlatformRef