-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathlayout-routing.module.ts
More file actions
43 lines (41 loc) · 1.74 KB
/
layout-routing.module.ts
File metadata and controls
43 lines (41 loc) · 1.74 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
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LayoutComponent } from './layout.component';
const routes: Routes = [
{
path: '',
component: LayoutComponent,
children: [
{ path: '', redirectTo: 'dashboard', pathMatch: 'prefix' },
{
path: 'dashboard',
loadChildren: () => import('./dashboard/dashboard.module').then((m) => m.DashboardModule)
},
{ path: 'charts', loadChildren: () => import('./charts/charts.module').then((m) => m.ChartsModule) },
{ path: 'tables', loadChildren: () => import('./tables/tables.module').then((m) => m.TablesModule) },
{ path: 'forms', loadChildren: () => import('./form/form.module').then((m) => m.FormModule) },
{
path: 'bs-element',
loadChildren: () => import('./bs-element/bs-element.module').then((m) => m.BsElementModule)
},
{ path: 'grid', loadChildren: () => import('./grid/grid.module').then((m) => m.GridModule) },
{
path: 'components',
loadChildren: () => import('./bs-component/bs-component.module').then((m) => m.BsComponentModule)
},
{
path: 'blank-page',
loadChildren: () => import('./blank-page/blank-page.module').then((m) => m.BlankPageModule)
},
{
path: 'profile',
loadChildren: () => import('../profile/profile.component').then((m) => m.ProfileComponent)
}
]
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class LayoutRoutingModule {}