title: Angular2 Error: Cannot match any routes. URL Segment:
body: <p>I tried to combined all my routing of each module in one routing.ts. But i got error <code>Error: Cannot match any routes. URL Segment:'job'</code>.. I've follow the coding style tutorial from angular2.. what is wrong is my code?</p>
  
  <p>Below is my code in <code>routing.ts</code></p>
  
  <pre><code>import { NgModule } from '@angular/core';
  import { Routes, RouterModule } from '@angular/router';
  import { JobComponent } from './job.component';
  import { JobfileComponent } from './jobfile/jobfile.component';
  import { JobcompletedComponent } from './jobcompleted/jobcompleted.component';
  import { FullLayoutComponent } from '../layouts/full-layout.component';
  
  const routes: Routes = [
    { path: '',redirectTo: 'job',pathMatch: 'full' },
    { path: '',component: FullLayoutComponent,data: {title: 'Job Assignment' },
      children: [ {path: 'job',loadChildren: './job/job.module#JobModule' }, ]
    },
    { path: '',redirectTo: 'jobfile',pathMatch: 'full' },
    { path: '',component: FullLayoutComponent,data: {title: 'Job File' },
      children: [ {path: 'jobfile',loadChildren: './job/jobfile/jobfile.module#JobfileModule' }, ]
  
    },
    { path: '',redirectTo: 'jobcompleted',pathMatch: 'full' },
    { path: '',component: FullLayoutComponent,data: {title: 'Job Completed' },
      children: [ {path: 'jobcompleted',loadChildren: './job/jobcompleted/jobcompleted.module#JobcompletedModule' }, ]
  
    },
  ];
  
  @NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule],
    declarations: [ JobComponent, JobfileComponent, JobcompletedComponent, FullLayoutComponent ]
  })
  export class JobRoutingModule {}
  </code></pre>