These are chat archives for AngularClass/angular2-webpack-starter

9th
Jan 2018
Michael Lehmann
@Michael53545556_twitter
Jan 09 2018 15:27
Does the current version of angular2-webpack-starter work together with Clarity ?
texirv0203
@texirv0203
Jan 09 2018 17:16

hi,

  • using the below example, I am trying to implement appDyanmics in my code.
    https://github.com/derrekyoung/appd-sampleapp-angular2
  • but for some reason its not going inside constructor code constructor(public appRoutes:Router) {
  • I kept debugger and saw in the if statement still it didnt go inside.
  • can you tell me how to fix it.
  • providing my code below

```
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