MCPcopy Index your code
hub / github.com/angular/angular / bootstrap

Function bootstrap

packages/platform-browser/test/browser/bootstrap_spec.ts:165–180  ·  view source on GitHub ↗
(
  cmpType: any,
  providers: Provider[] = [],
  platformProviders: StaticProvider[] = [],
  imports: Type<any>[] = [],
)

Source from the content-addressed store, hash-verified

163}
164
165function bootstrap(
166 cmpType: any,
167 providers: Provider[] = [],
168 platformProviders: StaticProvider[] = [],
169 imports: Type<any>[] = [],
170): Promise<any> {
171 @NgModule({
172 imports: [BrowserModule, ...imports],
173 declarations: [cmpType],
174 bootstrap: [cmpType],
175 providers: [provideZoneChangeDetection(), ...providers],
176 schemas: [CUSTOM_ELEMENTS_SCHEMA],
177 })
178 class TestModule {}
179 return platformBrowser(platformProviders).bootstrapModule(TestModule);
180}
181
182describe('bootstrap factory method', () => {
183 let el: HTMLElement;

Callers 1

bootstrap_spec.tsFile · 0.70

Calls 1

bootstrapModuleMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…