Default rout is not loading Tab Component be default . it only works if I replace the below code
{ path: 'tab/:id', component: TabComponent tabs }// note:works with one parameter only app.routing.ts
const appRoutes: Routes = [
{
path: '',
component: NavMenuComponent, // nav component
children: [
{
path: '',
redirectTo: 'tab/' ,
pathMatch: 'full'
},
{
path: 'tab/:id/:title',
component: TabComponent // tabs
}
]
},
];
manu.copnent.html
<ul class="list-unstyled list" *ngFor='let tab of tabs'>
<li><a [routerLink]="['/tab',tab.LinkTabID,tab.TabName]" class="anchorLink"><i class="icon-home scolor"></i><font color="white">{{tab.TabName}}</font></a></li>
</ul>