Files
airport-chengdu-web/src/app/pages/basic-data/basic-data-routing.module.ts
T

104 lines
3.5 KiB
TypeScript
Raw Normal View History

2018-10-29 16:27:34 +08:00
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { BasicDataComponent } from './basic-data.component';
2018-11-12 14:32:28 +08:00
import { CheckinGroupComponent } from './checkin-group/checkin-group.component';
import { GateComponent } from './gate/gate.component';
import { TerminalComponent } from './terminal/terminal.component';
import { ChutComponent } from './chut/chut.component';
import { StandComponent } from './stand/stand.component';
import { CarouselComponent } from './carousel/carousel.component';
import { CheckinDeskComponent } from './checkin-desk/checkin-desk.component';
import { AirportComponent } from './airport/airport.component';
import { CityComponent } from './city/city.component';
import { AircraftTypeComponent } from './aircraft-type/aircraft-type.component';
import { AircraftComponent } from './aircraft/aircraft.component';
import { TerminalAreaComponent } from './terminal-area/terminal-area.component';
import { AirlineComponent } from './airline/airline.component';
2018-10-29 16:27:34 +08:00
const basicDataRoutes: Routes = [
{
path: '',
2018-11-12 14:32:28 +08:00
component: BasicDataComponent,
2018-12-19 13:40:46 +08:00
children: [
2018-12-03 11:28:24 +08:00
{
2018-12-19 13:40:46 +08:00
path: '',
redirectTo: 'chekingroup',
pathMatch: 'full'
2018-12-03 11:28:24 +08:00
},
2018-11-12 14:32:28 +08:00
{
2018-12-19 13:40:46 +08:00
path: 'checkingroup',
component: CheckinGroupComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'gate',
component: GateComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'terminal',
component: TerminalComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'chut',
component: ChutComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'stand',
component: StandComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'carousel',
component: CarouselComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'checkindesk',
component: CheckinDeskComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'airport',
component: AirportComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'city',
component: CityComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'aircrafttype',
component: AircraftTypeComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'aircraft',
component: AircraftComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'terminalarea',
component: TerminalAreaComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
},
{
2018-12-19 13:40:46 +08:00
path: 'airline',
component: AirlineComponent,
2019-02-21 14:02:33 +08:00
data: { preload: true, reuse: false }
2018-11-12 14:32:28 +08:00
}
2018-12-19 13:40:46 +08:00
],
// data: { preload: false, reuse: true }
2018-10-29 16:27:34 +08:00
}
]
@NgModule({
imports: [RouterModule.forChild(basicDataRoutes)],
exports: [RouterModule]
})
export class BasicDataRouting { }