Add nested route config for authentication
This commit is contained in:
parent
dc993b2879
commit
c3f9ba7bca
1 changed files with 8 additions and 3 deletions
|
@ -8,10 +8,15 @@ export const routes: Routes = [
|
|||
path: '',
|
||||
component: LandingPageComponent,
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
canActivate: [authGuard],
|
||||
children: [
|
||||
{
|
||||
path: 'home',
|
||||
component: HomepageComponent,
|
||||
canActivate: [authGuard],
|
||||
},
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Reference in a new issue