Created
July 18, 2018 07:15
-
-
Save brachi-wernick/b5257eca0e5748fbb86af3e3973dd88d to your computer and use it in GitHub Desktop.
Route config with only one route guard
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 appRoutes: Routes = [ | |
{ | |
path: "", | |
canActivateChild: [CanActivateGuard], | |
children: [ | |
{ | |
path: 'crisis-center', component: CrisisListComponent, | |
}, | |
{ | |
path: 'hero/:id', | |
component: HeroDetailComponent, | |
}, | |
{ | |
path: 'heroes', | |
component: HeroListComponent, | |
} | |
] | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment