Advertisement
object_254

path old

Apr 12th, 2022
609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RouterModule.forChild([
  2.       {
  3.         path: '',
  4.         redirectTo: 'header',
  5.         pathMatch: 'full'
  6.       },
  7.       {
  8.         path: 'header', component: HeaderComponent, children: [
  9.           {
  10.             path: '',
  11.             redirectTo: 'home',
  12.             pathMatch: 'full'
  13.           },
  14.           { path: 'home', component: HomeComponent },
  15.           { path: 'event/:id', component: EventComponent },
  16.         ........
  17.       },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement