| 82 | class ChildLazyLoadedComponent {} |
| 83 | |
| 84 | @NgModule({ |
| 85 | declarations: [ParentLazyLoadedComponent, ChildLazyLoadedComponent], |
| 86 | imports: [ |
| 87 | RouterModule.forChild([ |
| 88 | { |
| 89 | path: 'loaded', |
| 90 | component: ParentLazyLoadedComponent, |
| 91 | children: [{path: 'child', component: ChildLazyLoadedComponent}], |
| 92 | }, |
| 93 | ]), |
| 94 | ], |
| 95 | }) |
| 96 | class LoadedModule {} |
| 97 | |
| 98 | const fixture = await createRoot(router, RootCmp); |
| 99 |