Last active
April 13, 2023 13:19
-
-
Save GerritRiesch94/1332e749bf3d977ff7b0ef8d8214177c to your computer and use it in GitHub Desktop.
New App Routing Module with functional guard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const routes: Routes = [ | |
{ | |
path: 'home', | |
loadComponent: () => import('./home/home.component').then(m => m.HomeComponent), | |
canActivate: [(): boolean => inject(AuthService).isAuthenticated()] | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment