Add nested route config for authentication
This commit is contained in:
parent
cc71106950
commit
be8ef36da2
@ -8,10 +8,15 @@ export const routes: Routes = [
|
||||
path: '',
|
||||
component: LandingPageComponent,
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
canActivate: [authGuard],
|
||||
children: [
|
||||
{
|
||||
path: 'home',
|
||||
component: HomepageComponent,
|
||||
canActivate: [authGuard],
|
||||
},
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user