@@ -2,7 +2,12 @@ import {Homepage} from './pages/homepage';
2
2
import { ComponentList } from './pages/component-list' ;
3
3
import { GuideList } from './pages/guide-list' ;
4
4
import { Routes } from '@angular/router' ;
5
- import { ComponentViewer } from './pages/component-viewer/component-viewer' ;
5
+ import {
6
+ ComponentApi ,
7
+ ComponentExamples ,
8
+ ComponentOverview ,
9
+ ComponentViewer
10
+ } from './pages/component-viewer/component-viewer' ;
6
11
import { ComponentCategoryList } from './pages/component-category-list/component-category-list' ;
7
12
import { ComponentSidenav } from './pages/component-sidenav/component-sidenav' ;
8
13
import { GuideViewer } from './pages/guide-viewer/guide-viewer' ;
@@ -24,7 +29,16 @@ export const MATERIAL_DOCS_ROUTES: Routes = [
24
29
{ path : '' , component : ComponentCategoryList } ,
25
30
{ path : 'component/:id' , redirectTo : ':id' , pathMatch : 'full' } ,
26
31
{ path : 'category/:id' , redirectTo : '/categories/:id' , pathMatch : 'full' } ,
27
- { path : ':id' , component : ComponentViewer } ,
32
+ {
33
+ path : ':id' ,
34
+ component : ComponentViewer ,
35
+ children : [
36
+ { path : '' , redirectTo : 'overview' , pathMatch : 'full' } ,
37
+ { path : 'overview' , component : ComponentOverview , pathMatch : 'full' } ,
38
+ { path : 'api' , component : ComponentApi , pathMatch : 'full' } ,
39
+ { path : 'examples' , component : ComponentExamples , pathMatch : 'full' } ,
40
+ ] ,
41
+ } ,
28
42
] ,
29
43
} ,
30
44
{ path : 'guides' , component : GuideList } ,
0 commit comments