Guest User

Untitled

a guest
May 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. const appRoutes: Routes = [
  2.  
  3. {
  4. path: '',
  5. redirectTo: 'home',
  6. pathMatch: 'full'
  7. },
  8. //Site routes goes here
  9. {
  10. path: 'home',
  11. component: SiteLayoutComponent,
  12. children: [
  13. {
  14. path: '',
  15. component: HomeComponent
  16. }
  17. ]
  18. },
  19. //App routes goes here
  20. {
  21. path: 'app',
  22. component: AppLayoutComponent,
  23. children: [
  24. { path: 'contact', component: ContactComponent }
  25. ]
  26. },
  27. //No layout routes
  28. {
  29. path: '**', redirectTo: 'home'
  30. }
Add Comment
Please, Sign In to add comment