-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathapp.routes.ts
More file actions
45 lines (43 loc) · 1.55 KB
/
app.routes.ts
File metadata and controls
45 lines (43 loc) · 1.55 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { Routes } from '@angular/router';
import { ItemDetailComponent } from './item/item-detail.component';
import { ItemsComponent } from './item/items.component';
import { ListViewStickyComponent } from './list-view-sticky/list-view-sticky.component';
import { SPLIT_VIEW_ROUTES } from './split-view-demo/split-view.routes';
// import { HomeComponent } from './home/home.component';
// import { BootGuardService } from './boot-guard.service';
export const routes: Routes = [
{ path: '', redirectTo: '/rootlazy', pathMatch: 'full' },
{ path: 'items', component: ItemsComponent },
{ path: 'item/:id', component: ItemDetailComponent },
{ path: 'item2', loadChildren: () => import('./item2/item2.routes').then((m) => m.ITEM2_ROUTES) },
{ path: 'rootlazy', loadChildren: () => import('./item3/item3.module').then((m) => m.Item3Module) },
{
path: 'list-view-sticky',
component: ListViewStickyComponent,
},
{
path: 'split-view-demo',
children: SPLIT_VIEW_ROUTES,
},
/**
* Test tab named outlets
*/
// { path: '', redirectTo: '/home', pathMatch: 'full' },
// {
// path: 'home',
// component: HomeComponent,
// canActivate: [() => Promise.resolve(true)],
// children: [
// {
// path: 'start',
// component: NSEmptyOutletComponent,
// loadChildren: () => import('./item3/item3.module').then((m) => m.Item3Module),
// outlet: 'startTab',
// },
// ],
// },
// {
// path: 'item2',
// loadChildren: () => import('./item2/item2.module').then((m) => m.Item2Module),
// },
];