samarthagarwal
10/1/2018 - 9:39 AM

Q31_01

let routes: Routes = [{
  path: '', redirectTo: 'home', pathMatch: 'full'
}, {
  path: 'view/:post', component: ViewComponent
}, {
\!h  path: 'profile/:id', component: ProfileComponent
},{
  path: '**', redirectTo: 'home'
}]