Created
October 31, 2022 09:13
-
-
Save NetanelBasal/55f8e051135ac3788cab79907decaee4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 = [ | |
{ | |
path: 'login', | |
component: LoginPageComponent, | |
canMatch: [authGuard({ isProtected: false })], | |
}, | |
{ | |
path: 'todos', | |
component: TodosPageComponent, | |
canMatch: [authGuard()], | |
}, | |
{ | |
path: 'foo', | |
component: FooPageComponent, | |
canMatch: [authGuard({ redirectTo: ['foo', 'bar'] })], | |
}, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment