AngularDoc / angulardoc.github.io

angulardoc.github.io web site
https://angulardoc.github.io
34 stars 2 forks source link

Routers Map Nothing #13

Open swogjs opened 6 years ago

swogjs commented 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' } ] } ];

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.

agiledigits commented 6 years ago

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.