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: 'probes', loadChildren: './probes/probes-page.module#ProbesPageModule' }, { 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: 'discovery', loadChildren: './discovery/discovery-page.module#DiscoveryPageModule' }, { 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: 'settings/member', loadChildren: './settings/member/member-page.module#MemberPageModule' }, ] } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class PagesRoutingModule { }