First off my apology for the 'noobish' question, but I have digged through all solutions yet I can't figure it out.
My childroute isn't working. When I click the link it doesn't throw an error nor redirects so I don't know how to debug this.
This is in my app-routing.module.ts:
const routes: Routes = [
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
{
path: 'dashboard',
component: DashboardComponent,
children: [
{ path: 'tools', component: ToolsComponent, outlet: 'forum' },
{
path: 'tutorials',
component: TutorialsComponent,
outlet: 'forum',
children: [{ path: 'tutorials/:id', component: UsecasesComponent, outlet: 'forum' }]
},
{ path: 'scripts', component: ScriptsComponent, outlet: 'forum' }
]
},
{ path: 'about', component: UsecasesComponent },
{ path: '**', redirectTo: '/' }
]
This is the problematic code:
children: [{ path: 'tutorials/:id', component: UsecasesComponent, outlet: 'forum' }]
In my topic-card.component.html I generate a link like so:
<a mat-list-item [routerLink]="[{ outlets: { forum: ['tutorials', '1'] } }]">TESTLINK</a>
An image of the webpage:
This is the link that gets generated: http://localhost:4200/dashboard/(forum:tutorials/(forum:tutorials/1))
So, when I click the link nothing happens. Does anybody have a clue as to what might be going wrong here?