Recently I read this useful article about Angular 2 Router and looked at the demo. Everything seemed to be perfect. But when I tried to determine the active route based on
Its not a bug to my knowledge, you need to have a fallback component for /
or unknown paths. (most likely HomeComponent)
@Routes([
{ path: '/home', component: HomeComponent },
{ path: '/about', component: AboutComponent },
{ path: '*', name: component: HomeComponent }
]);
This though is using the new Router
module (not the deprecated one) and works in rc.0
and rc.1