This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

createPlatformFactory

Creates a factory for a platform

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