Angular 2 version: 2.0.0-alpha.44
I\'ve been trying to do routing in Angular 2. Though i was able to do the normal routing done, i am facing some is
You just need to import the child component in the routerLink
then your code is working fine. For example:
hello
Here is the working plnkur of your code. Plunker Code
For more info about this routing see this issue on github here
As of Angular 2 beta some changes are here:
router-link
has been changed to routerLink
You can also use useAsDefault : true
instead of providing child at the time of routerLink like this -
{path: '/blabla', components: ABC , name : ABC, useAsDefault: true}