PlatformRef

PlatformRef

Stable Class

Class Overview

class PlatformRef {
  bootstrapModuleFactory(moduleFactory: NgModuleFactory<M>) : Promise<NgModuleRef<M>>
  bootstrapModule(moduleType: Type<M>, compilerOptions?: CompilerOptions|CompilerOptions[]) : Promise<NgModuleRef<M>>
  onDestroy(callback: () => void) : void
  injector : Injector
  destroy() : void
  destroyed : boolean
}

Class Description

The Angular platform is the entry point for Angular on a web page. Each page has exactly one platform, and services (such as reflection) which are common to every Angular application running on the page are