Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit ea2fe58

Browse files
authored
docs: Minor improvements (#2072)
1 parent d4c0a08 commit ea2fe58

File tree

13 files changed

+38
-38
lines changed

13 files changed

+38
-38
lines changed

demos/src/app/app-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ const routes: Routes = [
5858
{path: 'menu-demo', loadChildren: () => import('./components/menu-demo/menu.module').then(m => m.MenuModule)},
5959
{
6060
path: 'menu-surface-demo', loadChildren: () =>
61-
import('./components/menu-surface-demo/menu-surface.module').then(m => m.MenuSurfaceModule)
61+
import('./components/menu-surface/module').then(m => m.MenuSurfaceModule)
6262
},
6363
{path: 'radio-demo', loadChildren: () => import('./components/radio/module').then(m => m.RadioModule)},
6464
{path: 'ripple-demo', loadChildren: () => import('./components/ripple-demo/ripple.module').then(m => m.RippleModule)},
6565
{path: 'select-demo', loadChildren: () => import('./components/select/module').then(m => m.SelectModule)},
66-
{path: 'shape-docs', loadChildren: () => import('./components/shape-docs/shape.module').then(m => m.ShapeModule)},
66+
{path: 'shape-docs', loadChildren: () => import('./components/shape/module').then(m => m.ShapeModule)},
6767
{path: 'slider-demo', loadChildren: () => import('./components/slider-demo/slider.module').then(m => m.SliderModule)},
6868
{
6969
path: 'snackbar-demo', loadChildren: () =>

demos/src/app/components/menu-surface-demo/routing.module.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

demos/src/app/components/menu-surface-demo/menu-surface-demo.ts renamed to demos/src/app/components/menu-surface/menu-surface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Component, OnInit, ViewChild} from '@angular/core';
33
import {ComponentViewer} from '../../shared/component-viewer';
44

55
@Component({template: '<component-viewer></component-viewer>'})
6-
export class MenuSurfaceDemo implements OnInit {
6+
export class MenuSurface implements OnInit {
77
@ViewChild(ComponentViewer, {static: true}) _componentViewer: ComponentViewer;
88

99
ngOnInit(): void {
@@ -41,7 +41,7 @@ export class Examples {
4141
<mdc-image-list class="menu-surface-image-list">
4242
<mdc-image-list-item *ngFor="let i of images">
4343
<mdc-image-list-image-aspect>
44-
<img mdcImageListImage src="https://material-components-web.appspot.com/images/photos/3x2/{{i+1}}.jpg" />
44+
<img mdcImageListImage src="<image source>" />
4545
</mdc-image-list-image-aspect>
4646
<mdc-image-list-supporting>
4747
<span mdcImageListLabel>Text label</span>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import {NgModule} from '@angular/core';
2+
import {Routes, RouterModule} from '@angular/router';
3+
4+
import {Api, Examples, Sass, MenuSurface} from './menu-surface';
5+
6+
export const ROUTE_DECLARATIONS = [
7+
Api,
8+
Examples,
9+
Sass,
10+
MenuSurface
11+
];
12+
13+
const ROUTES: Routes = [
14+
{
15+
path: '', component: MenuSurface,
16+
children: [
17+
{path: '', redirectTo: 'api'},
18+
{path: 'api', component: Api},
19+
{path: 'sass', component: Sass},
20+
{path: 'examples', component: Examples}
21+
]
22+
}
23+
];
24+
25+
@NgModule({
26+
imports: [RouterModule.forChild(ROUTES)],
27+
exports: [RouterModule]
28+
})
29+
export class RoutingModule {}

demos/src/app/components/shape-docs/routing.module.ts renamed to demos/src/app/components/shape/routing.module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import {NgModule} from '@angular/core';
22
import {Routes, RouterModule} from '@angular/router';
33

4-
import {Usage, ShapeDocs} from './shape';
4+
import {Usage, Shape} from './shape';
55

66
export const ROUTE_DECLARATIONS = [
77
Usage,
8-
ShapeDocs
8+
Shape
99
];
1010

1111
const ROUTES: Routes = [
1212
{
13-
path: '', component: ShapeDocs,
13+
path: '', component: Shape,
1414
children: [
1515
{path: '', redirectTo: 'usage'},
1616
{path: 'usage', component: Usage}

0 commit comments

Comments
 (0)