104 lines
3.5 KiB
TypeScript
104 lines
3.5 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { BasicDataComponent } from './basic-data.component';
|
|
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';
|
|
|
|
const basicDataRoutes: Routes = [
|
|
{
|
|
path: '',
|
|
component: BasicDataComponent,
|
|
children: [
|
|
{
|
|
path: '',
|
|
redirectTo: 'chekingroup',
|
|
pathMatch: 'full'
|
|
},
|
|
{
|
|
path: 'checkingroup',
|
|
component: CheckinGroupComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'gate',
|
|
component: GateComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'terminal',
|
|
component: TerminalComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'chut',
|
|
component: ChutComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'stand',
|
|
component: StandComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'carousel',
|
|
component: CarouselComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'checkindesk',
|
|
component: CheckinDeskComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'airport',
|
|
component: AirportComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'city',
|
|
component: CityComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'aircrafttype',
|
|
component: AircraftTypeComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'aircraft',
|
|
component: AircraftComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'terminalarea',
|
|
component: TerminalAreaComponent,
|
|
data: { preload: true, reuse: false }
|
|
},
|
|
{
|
|
path: 'airline',
|
|
component: AirlineComponent,
|
|
data: { preload: true, reuse: false }
|
|
}
|
|
],
|
|
// data: { preload: false, reuse: true }
|
|
}
|
|
]
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(basicDataRoutes)],
|
|
exports: [RouterModule]
|
|
})
|
|
|
|
export class BasicDataRouting { } |