2018-04-06 06:59:49 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { PagesComponent } from './pages.component';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: PagesComponent,
|
|
|
|
children: [
|
2018-04-06 08:11:24 +00:00
|
|
|
{ path: '', redirectTo: 'home' },
|
|
|
|
{ path: 'home', loadChildren: './home/home-page.module#HomePageModule' },
|
2018-04-06 12:40:59 +00:00
|
|
|
{ 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' },
|
2018-04-06 06:59:49 +00:00
|
|
|
// { path: 'discovery', loadChildren: './discovery/discovery-page.module#DiscoveryPageModule' },
|
2018-04-06 12:40:59 +00:00
|
|
|
{ path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' },
|
2018-04-06 06:59:49 +00:00
|
|
|
// { path: 'target', loadChildren: './target/target-page.module#TargetPageModule' },
|
2018-04-10 12:37:09 +00:00
|
|
|
{ path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' },
|
|
|
|
{ path: 'dashboard', loadChildren: './dashboard/dashboard-page.module#DashboardPageModule' },
|
2018-04-06 06:59:49 +00:00
|
|
|
// { path: 'notification', loadChildren: './notification/notification-page.module#NotificationPageModule' },
|
2018-04-10 12:37:09 +00:00
|
|
|
{ path: 'alert', loadChildren: './alert/alert-page.module#AlertPageModule' },
|
|
|
|
{ path: 'report', loadChildren: './report/report-page.module#ReportPageModule' },
|
|
|
|
{ path: 'log', loadChildren: './log/log-page.module#LogPageModule' },
|
2018-04-06 06:59:49 +00:00
|
|
|
// { path: 'settings/member', loadChildren: './settings/member/member-page.module#MemberPageModule' },
|
|
|
|
]
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class PagesRoutingModule { }
|