MCPcopy Create free account
hub / github.com/angular/angular / bootstrap

Method bootstrap

packages/core/src/application/application_ref.ts:448–450  ·  view source on GitHub ↗

* Bootstrap a component onto the element identified by its selector or, optionally, to a * specified element. * * @usageNotes * ### Bootstrap process * * When bootstrapping a component, Angular mounts it onto a target DOM element * and kicks off automatic change detection. The t

(component: Type<C>, rootSelectorOrNode?: string | any)

Source from the content-addressed store, hash-verified

446 * {@example core/ts/platform/platform.ts region='domNode'}
447 */
448 bootstrap<C>(component: Type<C>, rootSelectorOrNode?: string | any): ComponentRef<C> {
449 return this.bootstrapImpl(component, rootSelectorOrNode);
450 }
451
452 private bootstrapImpl<C>(
453 component: Type<C>,

Callers 7

ngDoBootstrapMethod · 0.45
ngDoBootstrapMethod · 0.45
di_graph_spec.tsFile · 0.45
bootstrapFunction · 0.45
_moduleDoBootstrapFunction · 0.45

Calls 1

bootstrapImplMethod · 0.95

Tested by

no test coverage detected