Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. const routes: Routes = [
  2. {
  3. path: '',
  4. children: [
  5. {
  6. path: 'red',
  7. component: RedComponent
  8. },
  9. {
  10. path: 'blue',
  11. component: BlueComponent
  12. },
  13. ]
  14. },
  15. {
  16. path: '**',
  17. redirectTo: '/'
  18. }
  19. ];
  20.  
  21. @NgModule({
  22. imports: [RouterModule.forRoot(routes)],
  23. exports: [RouterModule]
  24. })
  25. export class AppRoutingModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement