I have a component nav, which is a menu that processes the routing bit, the problem is that I can not show the contents of the routes, because I do not have router-outleta component in the template nav.
Instead, I would like to display the contents of the route in the main component of the application core, but how can I tell angular to use router-outletin my corecomponent, and not in my navcomponent?
Since mine [routerLink]is inside this template:
nav.component.html
<nav class="nav-wrapper" [class.is-toggled]="isToggled" [class.is-hidden]="!isToggled">
<ul class="nav-links">
<li class="nav-link" *ngFor="#link of links">
<a [routerLink]="link.href">
<div class="label-wrapper">{{link.label}}</div>
<div class="icon-wrapper"><i class="{{link.icon}}"></i></div>
</a>
</li>
</ul>
</nav>
He does not want to display the route in the component core:
core.component.html
<nav-list></nav-list>
<router-outlet></router-outlet>
videos.component.html
<h1>My videos</h1>
<router-outlet></router-outlet>
list.videos.component.html
<h1>Videos list</h1>
, , , , , core.
?
, router-outlet nav.