|
1 |
| -import { Routes } from '@angular/router'; |
2 |
| -import { TransactionsDashboardComponent } from './components/header/transactions-dashboard/transactions-dashboard.component'; |
3 |
| -import { BottomLeftComponent } from './components/header/bottom-left/bottom-left.component'; |
4 |
| -import { BottomRightComponent } from './components/header/bottom-right/bottom-right.component'; |
5 |
| -import { DynamicGridComponent } from './components/dynamic-grid/dynamic-grid.component'; |
| 1 | +import { Routes } from "@angular/router"; |
6 | 2 |
|
7 | 3 | export const routes: Routes = [
|
8 |
| - { path: 'dashboard', component: TransactionsDashboardComponent }, |
9 |
| - { path: 'transactions', component: TransactionsDashboardComponent }, |
10 |
| - { path: 'bottom-left', component: BottomLeftComponent }, |
11 |
| - { path: 'bottom-right', component: BottomRightComponent }, |
12 |
| - { path: 'grid', component: DynamicGridComponent }, |
13 |
| - { path: 'home', redirectTo: 'dashboard', pathMatch: 'full' }, |
14 |
| - { path: '', redirectTo: 'dashboard', pathMatch: 'full' }, |
| 4 | + { |
| 5 | + path: "grid", |
| 6 | + loadComponent: () => |
| 7 | + import("./components/dynamic-grid/dynamic-grid.component").then((m) => m.DynamicGridComponent), |
| 8 | + }, |
| 9 | + { |
| 10 | + path: "scheduler", |
| 11 | + loadComponent: () => import("./components/scheduler/scheduler.component").then((m) => m.SchedulerComponent), |
| 12 | + }, |
| 13 | + { |
| 14 | + path: "charts", |
| 15 | + loadComponent: () => import("./components/charts/charts.component").then((m) => m.ChartsComponent), |
| 16 | + }, |
| 17 | + { |
| 18 | + path: "header", |
| 19 | + loadComponent: () => import("./components/header/header.component").then((m) => m.HeaderComponent), |
| 20 | + }, |
| 21 | + { |
| 22 | + path: "dateinputs", |
| 23 | + loadComponent: () => |
| 24 | + import("./components/date-inputs/date-inputs.component").then((m) => m.DateInputsComponent), |
| 25 | + }, |
| 26 | + { |
| 27 | + path: "dropdowns", |
| 28 | + loadComponent: () => import("./components/dropdowns/dropdowns.component").then((m) => m.DropdownsComponent), |
| 29 | + }, |
| 30 | + { |
| 31 | + path: "layout", |
| 32 | + loadComponent: () => import("./components/layout/my-layout.component").then((m) => m.MyLayoutComponent), |
| 33 | + }, |
| 34 | + { |
| 35 | + path: "chat", |
| 36 | + loadComponent: () => |
| 37 | + import("./components/conversational-ui/conversational-ui.component").then( |
| 38 | + (m) => m.ConversationalUiComponent |
| 39 | + ), |
| 40 | + }, |
| 41 | + { path: "home", redirectTo: "header", pathMatch: "full" }, |
| 42 | + { path: "", redirectTo: "header", pathMatch: "full" }, |
15 | 43 | ];
|
0 commit comments