When you look at the angular 2 heroes sample:
http://plnkr.co/edit/Zd0qmavTzedtimImAgfQ?p=preview
There is the CrisisCenter and Heroes link
Both render a list of things or you can edit the thing by id.
But the RoutesConfig is totally different aside from the
redirectTo: '/crisis-center',
CrisisCenter has a route children property:
children: [
{
path: 'admin',
component: CrisisAdminComponent,
canActivate: [AuthGuard]
},
{
path: 'edit/:id',
component: CrisisDetailComponent,
canDeactivate: [CanDeactivateGuard]
},
{
path: '',
component: CrisisListComponent
}
]
When I search on the angular 2 site: https://angular.io/docs/ts/latest/glossary.html#!#stq=router&stp=1
for "children" I get not the information what that children property is for.
When I look at the heroes RoutesConfig:
export const HeroesRoutes: RouterConfig = [
{ path: 'heroes', component: HeroListComponent },
{ path: 'hero/:id', component: HeroDetailComponent }
];
There is no children property. I can make the Heroes load on the root page too: http://plnkr.co/edit/Zd0qmavTzedtimImAgfQ?p=preview
So for what is that children property good for?