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

createPlatform

Creates a platform. Platforms have to be eagerly created via this function.

      
      createPlatform(injector: Injector): PlatformRef
    

Parameters

injector

Type: Injector.

Returns

PlatformRef