I'm using Angular 4 to create my admin panel. To the left, I have a menu loaded from the primary Router. To the left is a greenish area where I want to load another component. I used a new router named "console-router". However, I can't get the content to show. The other component has valid HTML inside, and the primary router works great. I'm getting a parse error when defining the (link) that is supposed to show the "App Dashboard" content in the area to the left.
I have defined my paths in the App Module:
app.module.ts
{
path: 'console',
component: ConsoleComponent,
children: [
{
path: 'dashboard',
component: AppDashboardComponent,
outlet: 'console-router'
}
]
}
Here is the link that is supposed to load the component when "App Dashboard" is clicked:
console.component.html
<li><a [routerLink]="[{ outlets: { console-router: ['dashboard'] } }]">App Dashboard</a></li>
This is the definition of the Router inside the Console.
console.component.html
<router-outlet name="console-router"></router-outlet>
This is the error I'm getting (As if it was a syntax error, but in Angular.io, the code is exactly the same):

