I\'m looking for a solution with Angular 2 for the scenario explained below:
In this scenario, the top-nav contains links to load submodules and sub-nav has
you have to mention the outlet name in the routes mention your router outlet name in the routing like this "outlet:'sub"
routes: Routes = [
{path:'', redirectTo: 'login', pathMatch: 'full'},
{
path: 'login',
component: LoginComponent,
},
{ path: 'home',
component: AppComponent,
children: [
{path: 'home/pdf',component: SideMenuPage,outlet:"sub" },
{path:'home/addFileUp',component:SidePageAdd,outlet:"sub"},
]
},
];