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

Class ErrorModule

packages/platform-browser/test/browser/bootstrap_spec.ts:437–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435
436 it('should reject the bootstrapApplication promise if an imported module throws', (done) => {
437 @NgModule()
438 class ErrorModule {
439 constructor() {
440 throw new Error('This error should be in the promise rejection');
441 }
442 }
443
444 bootstrapApplication(SimpleComp, {
445 providers: [importProvidersFrom(ErrorModule)],

Callers

nothing calls this directly

Calls 1

NgModuleInterface · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…