forked from vmware-archive/clarity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spinners.demo.routing.ts
27 lines (24 loc) · 972 Bytes
/
spinners.demo.routing.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* Copyright (c) 2016-2019 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import { ModuleWithProviders } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SpinnerSizesDemo } from './spinner-sizes';
import { SpinnerTypesDemo } from './spinner-types';
import { SpinnerDemo } from './spinner.demo';
import { SpinnerComponentDemo } from './spinner-component';
const ROUTES: Routes = [
{
path: '',
component: SpinnerDemo,
children: [
{ path: '', redirectTo: 'spinner-types', pathMatch: 'full' },
{ path: 'spinner-types', component: SpinnerTypesDemo },
{ path: 'spinner-sizes', component: SpinnerSizesDemo },
{ path: 'spinner-component', component: SpinnerComponentDemo },
],
},
];
export const ROUTING: ModuleWithProviders = RouterModule.forChild(ROUTES);