Guest User

Untitled

a guest
Oct 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. const routes: Routes = [
  2. {path: '', component: ContainerComponent},
  3. {path: 'search', component: SearchComponent},
  4. {path: 'sign-in', loadChildren: './../signIn_Module/sign-in.module#SignInModule'},
  5. {path: 'sign-up', loadChildren: './../signUp_Module/sign-up.module#SignUpModule'},
  6. {path: 'home', loadChildren: './../home_Module/home.module#HomeModule'},
  7. {path: 'user', loadChildren: './../profile_Module/profile.module#ProfileModule'},
  8. {path: 'training', loadChildren: './../Training_Module/training.module#TrainingModule'},
  9.  
  10. {path: '**', redirectTo: '', pathMatch: 'full'}
  11. ];
  12.  
  13. const trainingRoutes: Routes = [
  14. {path: '', component: TrainingComponent, children: [
  15. {path: 'title', component: TitleComponent, outlet: 'training_content'},
  16. {path: 'image', component: ImageComponent, outlet: 'training_content'},
  17. {path: 'description', component: DescriptionComponent, outlet: 'training_content'},
  18. {path: 'file', component: FileComponent, outlet: 'training_content'},
  19. {path: 'requirement', component: RequirementComponent, outlet: 'training_content'},
  20. {path: 'details', component: DetailsComponent, outlet: 'training_content'},
  21. {path: '**', redirectTo: 'title', pathMatch: 'full'}
  22. ]},
  23. {path: '**', redirectTo: '', pathMatch: 'full'}
  24. ];
Add Comment
Please, Sign In to add comment