I am trying to configure my routing section, but I have an error: Unable to find the bootstrap component to boot , what I want is something like this:
appComponent
\
\
child1
\
\
child 2
What I have:
const appRoutes: Routes = [
{
path: '',
redirectTo: '/index',
pathMatch: 'full'
},
{
path: 'index',
component: moduleTermsComponent,
data: { name: 'index' }
},
{
path: 'module/:name',
component: moduleComp,
data: { name: 'module' },
children: [
{
path: ':info', component: childComp,
children: [
{ path: ':id', component: subchildComp },
]
}
]
}
];
Basically I need to create a router tree so that I can see what is the parent route of the route, and with this creates a breading
I searched a lot on google, but all this concerns older versions of angular 2, so I wonder if anyone can explain what is happening and any thoughts on posibles solutions for this or on better ideas for achieving the main goal, creates cracker for the current route
thank!!