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

Class TestModule

packages/router/test/bootstrap.spec.ts:107–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106 it('should complete when initial navigation fails and initialNavigation = enabledBlocking', async () => {
107 @NgModule({
108 imports: [BrowserModule],
109 declarations: [RootCmp],
110 bootstrap: [RootCmp],
111 providers: [
112 ...testProviders,
113 provideRouter(
114 [
115 {
116 matcher: () => {
117 throw new Error('error in matcher');
118 },
119 children: [],
120 },
121 ],
122 withEnabledBlockingInitialNavigation(),
123 ),
124 ],
125 schemas: [CUSTOM_ELEMENTS_SCHEMA],
126 })
127 class TestModule {
128 constructor(router: Router) {
129 log.push('TestModule');
130 router.events.subscribe((e) => log.push(e.constructor.name));
131 }
132 }
133
134 await platformBrowser([])
135 .bootstrapModule(TestModule)

Callers

nothing calls this directly

Calls 6

NgModuleInterface · 0.90
injectFunction · 0.90
provideRouterFunction · 0.85
createUrlTreeMethod · 0.80
forRootMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…