ComponentRef bootstrap(ComponentFactory componentFactory)

Bootstrap a new component at the root level of the application.

Bootstrap process

When bootstrapping a new root component into an application, Angular mounts the specified application component onto DOM elements identified by the componentType's selector and kicks off automatic change detection to finish initializing the component.

Example

{@example core/ts/platform/platform.ts region='longform'}

Source

ComponentRef bootstrap(ComponentFactory componentFactory);