fix(compiler-cli): find lazy routes in nested module import arrays

Fixes: #17531
This commit is contained in:
Chuck Jazdzewski
2017-06-20 11:24:26 -07:00
committed by Hans
parent 00874c27f4
commit 8c89cc4fc5
2 changed files with 13 additions and 9 deletions

View File

@ -14,11 +14,11 @@ export class LazyComponent {
}
@NgModule({
imports: [RouterModule.forChild([
imports: [[RouterModule.forChild([
{path: '', component: LazyComponent, pathMatch: 'full'},
{path: 'feature', loadChildren: './feature/feature.module#FeatureModule'},
{path: 'lazy-feature', loadChildren: './feature/lazy-feature.module#LazyFeatureModule'}
])],
])]],
declarations: [LazyComponent]
})
export class LazyModule {