Advertisement
remymumoh

AppRoutes

Oct 10th, 2020
1,456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Routes } from '@angular/router';
  2.  
  3. import { FullComponent } from './layouts/full/full.component';
  4. import { BlankComponent } from './layouts/blank/blank.component';
  5. import { PageNotFoundComponent } from './errors/404/page-not-found.component';
  6.  
  7. export const AppRoutes: Routes = [
  8.   {
  9.     path: '',
  10.     component: FullComponent,
  11.     children: [
  12.       { path: '', redirectTo: '/dashboard', pathMatch: 'full' },
  13.       { path: 'administration', loadChildren: () => import('./administration/administration.module').then(m => m.AdministrationModule) },
  14.       { path: 'dashboard', loadChildren: () => import('./dashboard/dashboard.module').then(m => m.DashboardModule) },
  15.       { path: 'helpdesk', loadChildren: () => import('./helpdesk/helpdesk.module').then(m => m.HelpDeskModule) },
  16.       { path: 'labsystems', loadChildren: () => import('./labsystems/labsystems.module').then(m => m.LabSystemsModule) },
  17.       { path: 'linkagecare', loadChildren: () => import('./linkagecare/linkagecare.module').then(m => m.LinkageCareModule) },
  18.       { path: 'mappinglisting', loadChildren: () => import('./mappinglisting/mappinglisting.module').then(m => m.MappingListingModule) },
  19.       { path: 'projectmanagement', loadChildren: () => import('./projectmanagement/projectmanagement.module').then(m => m.ProjectManagementModule) },
  20.       { path: 'reports', loadChildren: () => import('./reports/reports.module').then(m => m.ReportsModule) },
  21.       { path: 'fieldchecks', loadChildren: () => import('./fieldchecks/fieldchecks.module').then(m => m.FieldchecksModule) },
  22.       { path: 'rtdms', loadChildren: () => import('./rtdms/rtdms.module').then(m => m.RTDMSModule) },
  23.       { path: 'tickets', loadChildren: () => import('./tickets/tickets.module').then(m => m.TicketsModule) },
  24.       { path: 'wallboard', loadChildren: () => import('./wallboard/wallboard.module').then(m => m.WallboardModule) }
  25.     ]
  26.   },
  27.   {
  28.     path: '',
  29.     component: BlankComponent,
  30.     children: [
  31.       { path: 'errors', loadChildren: () => import('./errors/errors.module').then(m => m.ErrorsModule) },
  32.       { path: 'wallboard-monitor', loadChildren: () => import('./wallboard-monitor/monitor.module').then(m => m.WallboardMonitorReportModule) },
  33.       { path: 'dashboard-monitor', loadChildren: () => import('./dashboard-monitor/dashboard-monitor.module').then(m => m.DashboardMonitorModule) }
  34.     ]
  35.   },
  36.   {
  37.     path: '**',
  38.     component: PageNotFoundComponent
  39.   }
  40. ];
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement