These are chat archives for AngularClass/angular2-webpack-starter
An Angular 2 Webpack Starter kit featuring Angular 2, Router, TypeScript, and Webpack by AngularClass
hi,
```
console.log("app.routing.ts");
import { ModuleWithProviders, NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { Router, Event, NavigationStart, NavigationEnd } from '@angular/router';
import { Base } from './components/base/base';
import { LoadingMain } from './components/Loading/Loadingmain';
import { LoadingsWithoutFOXinfo } from './components/Loading/Loadings-without-FOXinfo';
import { LoadingsWithoutEpisodes } from './components/Loading/Loadings-without-episodes';
import { LoadingsWithoutFormat } from './components/Loading/Loadings-without-format';
import { LoadingsWithOverlaps } from './components/Loading/Loadings-with-overlaps';
import { AiringFOXInfoPopup } from './components/Loading/airing-FOXinfo-popup';
import { Listings } from './components/listings/listings';
import { ScoringsMain } from './components/Scorings/ScoringsMain';
import { ScoringFOXTBA } from './components/Scorings/ScoringFOXTBA';
import { ScoringBallChange } from './components/Scorings/ScoringBallChange';
import { ScoringOnAirOperations } from './components/Scorings/ScoringOnAirOperations';
import { ScoringVDS } from './components/Scorings/ScoringVDS';
import { ScoringBookedNotBooked } from './components/Scorings/ScoringBookedNotBooked';
import { ScoringOriginalRepeat } from './components/Scorings/ScoringOriginalRepeat';
import { ScoringNPSC } from './components/Scorings/ScoringNPSC';
import { phoneManagement } from './components/phone/phone-maintenance';
const appRoutes: Routes = [
{
path: '',
redirectTo: 'jumping',
pathMatch: 'full'
},
{
path: 'FlyingManagement',
component: FlyingsHeader,
children: [
{ path: '', redirectTo: 'FlyingSearch', pathMatch: 'full' },
{ path: 'FlyingSearch', component: FlyingSearch },
{
path: 'FlyingMain/:id', component: FlyingMain,
children: [
{ path: '', redirectTo: 'Base', component: FlyingCreateFill, pathMatch: 'full' },
{ path: 'FlyingCreateFill', component: FlyingCreateFill, canDeactivate: [CanDeactivateGuard] },
{ path: 'FlyingRights', component: FlyingRights, canDeactivate: [CanDeactivateGuard] },
{ path: 'FlyingDeliverySpecs', component: FlyingDeliverySpecs, canDeactivate: [CanDeactivateGuard] },
{ path: 'FlyingDocuments', component: FlyingDocuments, canDeactivate: [CanDeactivateGuard] },
{ path: 'FlyingAllocation', component: FlyingAllocation, canDeactivate: [CanDeactivateGuard] },
{ path: 'FlyingPayments', component: FlyingPayments, canDeactivate: [CanDeactivateGuard] },
{ path: 'FlyingNotes', component: FlyingNotes, canDeactivate: [CanDeactivateGuard] },
{ path: 'Base', component: Base, canDeactivate: [CanDeactivateGuard] }
]
}
]
},
{
path: 'Playing',
component: Development
},
{
path: 'Loadings',
component: LoadingMain,
children: [
{ path: '', redirectTo: 'LoadingsWithoutFOXinfo', pathMatch: 'full' },
{ path: 'LoadingsWithoutFOXinfo', component: LoadingsWithoutFOXinfo },
{ path: 'LoadingsWithoutEpisodes', component: LoadingsWithoutEpisodes, canDeactivate: [CanDeactivateGuard] },
{ path: 'LoadingsWithoutFormat', component: LoadingsWithoutFormat, canDeactivate: [CanDeactivateGuard] },
{ path: 'LoadingsWithOverlaps', component: LoadingsWithOverlaps, canDeactivate: [CanDeactivateGuard] },
]
},
{
path: 'SearchListings',
component: Listings
},
{
path: 'Forecasting',
component: Development
},
{
path: 'development',
component: Development
},
{
path: 'Base',
component: Base
},
{
path: 'Profitability',
component: Development
}
];
export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);
//export class AppRoutingModule { }
decl