Open swogjs opened 6 years ago
Routers Map is Nothing with Lazy Loading for Router Config.
Routers View draw only one Root path.
Router Config on Lazy Loding is modules config
routers.ts export const routes = [ { path: '', component: LayoutComponent, children: [ { path: '', name: 'home', redirectTo: 'workspace', pathMatch: 'full' }, { path: 'catalog', name: 'catalog', loadChildren: './catalog.module#CatalogModule' }, { path: 'taskmanager', name: 'taskmanager', loadChildren: './taskmanager.module#TaskManagerModule' }, { path: 'workflow', name: 'workflow', loadChildren: './workflow.module#WorkflowModule' }, { path: 'workspace', name: 'workspace', loadChildren: './workspace.module#WorkspaceModule' }, { path: 'setting', name: 'setting', loadChildren: './setting.module#SettingModule' } ] } ];
export const routes = [ { path: '', component: LayoutComponent, children: [ { path: '', name: 'home', redirectTo: 'workspace', pathMatch: 'full' }, { path: 'catalog', name: 'catalog', loadChildren: './catalog.module#CatalogModule' }, { path: 'taskmanager', name: 'taskmanager', loadChildren: './taskmanager.module#TaskManagerModule' }, { path: 'workflow', name: 'workflow', loadChildren: './workflow.module#WorkflowModule' }, { path: 'workspace', name: 'workspace', loadChildren: './workspace.module#WorkspaceModule' }, { path: 'setting', name: 'setting', loadChildren: './setting.module#SettingModule' } ] } ];
routes.module.ts @NgModule({ imports:[ RouterModule.forRoot(routes) ], declarations: [], exports: [ RouterModule ] })
@NgModule({ imports:[ RouterModule.forRoot(routes) ], declarations: [], exports: [ RouterModule ] })
app.module.ts ... @NgModule({ declarations: [ AppComponent, ], imports: [ StoreModule.forRoot({ viewstore : veiwReducer}), TranslateModule.forRoot({ provide: TranslateLoader, useFactory: (createTranslateLoader), deps: [Http], ModalModule, }), HttpModule, BrowserModule, BrowserAnimationsModule, LayoutModule, RoutesModule, SharedModule.forRoot() ], .... }) ...
... @NgModule({ declarations: [ AppComponent, ], imports: [ StoreModule.forRoot({ viewstore : veiwReducer}), TranslateModule.forRoot({ provide: TranslateLoader, useFactory: (createTranslateLoader), deps: [Http], ModalModule, }), HttpModule, BrowserModule, BrowserAnimationsModule, LayoutModule, RoutesModule, SharedModule.forRoot() ], .... }) ...
please. your kind help is very thanks.
We'll take a look and get back to you. In the meantime, you might want to try our new product, Angular Copilot (https://angulardoc.github.io/), to see if you get the correct results.
Routers Map is Nothing with Lazy Loading for Router Config.
Routers View draw only one Root path.
Router Config on Lazy Loding is modules config
routers.ts
export const routes = [ { path: '', component: LayoutComponent, children: [ { path: '', name: 'home', redirectTo: 'workspace', pathMatch: 'full' }, { path: 'catalog', name: 'catalog', loadChildren: './catalog.module#CatalogModule' }, { path: 'taskmanager', name: 'taskmanager', loadChildren: './taskmanager.module#TaskManagerModule' }, { path: 'workflow', name: 'workflow', loadChildren: './workflow.module#WorkflowModule' }, { path: 'workspace', name: 'workspace', loadChildren: './workspace.module#WorkspaceModule' }, { path: 'setting', name: 'setting', loadChildren: './setting.module#SettingModule' } ] } ];
routes.module.ts
@NgModule({ imports:[ RouterModule.forRoot(routes) ], declarations: [], exports: [ RouterModule ] })
app.module.ts
... @NgModule({ declarations: [ AppComponent, ], imports: [ StoreModule.forRoot({ viewstore : veiwReducer}), TranslateModule.forRoot({ provide: TranslateLoader, useFactory: (createTranslateLoader), deps: [Http], ModalModule, }), HttpModule, BrowserModule, BrowserAnimationsModule, LayoutModule, RoutesModule, SharedModule.forRoot() ], .... }) ...
please. your kind help is very thanks.