MCPcopy
hub / github.com/angular/angular / bootstrapApplication

Function bootstrapApplication

packages/platform-browser/src/browser.ts:123–138  ·  view source on GitHub ↗
(
  rootComponent: Type<unknown>,
  options?: ApplicationConfig,
  context?: BootstrapContext,
)

Source from the content-addressed store, hash-verified

121 * @publicApi
122 */
123export async function bootstrapApplication(
124 rootComponent: Type<unknown>,
125 options?: ApplicationConfig,
126 context?: BootstrapContext,
127): Promise<ApplicationRef> {
128 const config = {
129 rootComponent,
130 ...createProvidersConfig(options, context),
131 };
132
133 if ((typeof ngJitMode === 'undefined' || ngJitMode) && typeof fetch === 'function') {
134 await resolveJitResources();
135 }
136
137 return internalCreateApplication(config);
138}
139
140/**
141 * Create an instance of an Angular application without bootstrapping any components. This is useful

Callers 15

bootstrap_spec.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
index.tsFile · 0.90
main.tsFile · 0.90
main.tsFile · 0.90
di_graph_spec.tsFile · 0.90

Calls 3

createProvidersConfigFunction · 0.85
resolveJitResourcesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…