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