createPlatformFactory

function

Creates a factory for a platform

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

Parameters

parentPlatformFactory

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

name

Type: string.

providers

Type: StaticProvider[].

Optional. Default is [].

Returns

(extraProviders?: StaticProvider[]) => PlatformRef

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/core/createPlatformFactory