import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PagesComponent } from './pages.component';

const routes: Routes = [
  {
    path: '',
    component: PagesComponent,
    children: [
      { path: '', redirectTo: 'home' },
      { path: 'home', loadChildren: './home/home-page.module#HomePageModule' },
      { path: 'probe', loadChildren: './probe/probe-page.module#ProbePageModule' },
      // { path: 'sensors', loadChildren: './sensors/sensors-page.module#SensorsPageModule' },
      // { path: 'sensor', loadChildren: './sensor/sensor-page.module#SensorPageModule' },
      // { path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' },
      // { path: 'target', loadChildren: './target/target-page.module#TargetPageModule' },
      // { path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' },
      // { path: 'dashboard', loadChildren: './dashboard/dashboard-page.module#DashboardPageModule' },
      // { path: 'notification', loadChildren: './notification/notification-page.module#NotificationPageModule' },
      // { path: 'alert', loadChildren: './alert/alert-page.module#AlertPageModule' },
      // { path: 'report', loadChildren: './report/report-page.module#ReportPageModule' },
      // { path: 'log', loadChildren: './log/log-page.module#LogPageModule' },
      // { path: 'account', loadChildren: './account/account-page.module#AccountPageModule' },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class PagesRoutingModule { }
