0
我想为其他子女子女创造一个子女子。我想我的项目的结构,在这种形式如何给二角子女的其他子女子
- approute logincomponent
notfoundcomponent
additionalroutingmodule(加载使用懒惰的路由) 额外的路由模块 -othersubmodule(使用延迟加载加载) -other2submodule(使用延迟加载加载) 这里是模块代码
export const appRoutes: Routes = [ { path: '', loadChildren: 'app/additional.module#AdditionalModule' }, { path: 'login', component: LoginComponent }, { path: 'change-password', component: ChangePasswordComponent }, { path: 'not-allowed', component: NotAllowedComponent }, { path: '**', component: NotFoundComponent }/**/ ];
附加模块
export const routes: Routes = [ { path: '', component: AppHomeComponent, children: [ { path: 'party', loadChildren: 'app/party/party.module#PartyModule' }, { path: 'product', loadChildren: 'app/product/product.module#ProductModule' }, { path: 'order', loadChildren: 'app/order/order.module#OrderModule' }, { path: 'accounting', loadChildren: 'app/accounting/accounting.module#AccountingModule' } ] } ];
所以在布线时访问additonalroutingmodule它不会得到路径的子孩子什么时候会显示在括号 如新/新名单(旧错误/旧列表)
找到了解决办法 – hanini