Add nested route config for authentication

This commit is contained in:
Phan Huy Tran 2025-02-12 09:41:05 +01:00
parent cc71106950
commit be8ef36da2

View File

@ -9,9 +9,14 @@ export const routes: Routes = [
component: LandingPageComponent, component: LandingPageComponent,
}, },
{ {
path: 'home', path: '**',
component: HomepageComponent,
canActivate: [authGuard], canActivate: [authGuard],
}, children: [
{
path: 'home',
component: HomepageComponent,
},
]
}
]; ];