Sure thing, names have changed since I initially posted this, so the relevant component is UserHome. I didn’t include imports, but they’re all there in the file:
const routes: Routes = [
{
path: '',
component: LandingComponent,
pathMatch: 'full'
},
{
path: 'network-build',
component: NetworkBuildComponent,
canActivate: [AuthGuard]
},
{
path: 'profile',
component: ProfileComponent,
canActivate: [AuthGuard]
},
{
path: 'user-home',
component: UserHomeComponent,
canActivate: [AuthGuard]
},
{
path: 'survey-start',
component: SurveyStartComponent,
canActivate: [AuthGuard]
}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }