My RouteConfig has the following paths defined
@RouteConfig ([
{ path:'/main',name:'Home',redirectTo: ['Setup']},
{ path:'/setup',name:'Setup',component:SetupComponent},
{ path:'/configuration',name:'Configuration',component:ConfigurationComponent},
])
In the template I have
<ol>
<li><a [routerLink]="['Setup']">Setup</a></li>
<li><a [routerLink]="['Configuration']">Configuration</a></li>
<li><a [routerLink]="['Home']">Home</a></li>
</ol>
In the component, in a method I have tried
this._Router.navigate(['Home']);
In both cases, (Using routerLink directive and Router.navigate method) when trying to navigate to 'Home' route, I am getting the following error.
Component "AppComponent" has no route named "Home"
Whereas both the routes which has a component associated to them are working as expected. The same is the behavior when they are invoked from Children routers.
How can I route/navigate to the route defined by the name 'Home'?
@RouteConfig
defined inside the AppComponent file? – Poul Kruijt