createPlatform

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

createPlatform(injector: Injector): PlatformRef

参数

injector

Type: Injector.

返回值

PlatformRef