i have serious problem with angular 2 (RC1) router.
This code works:
<a [routerLink]="['/anythingEvenNotExistingRoute']"></a>
<router-outlet></router-outlet>
This doesn't:
//<a [routerLink]="['/anything']"></a> <-- without this line in html template
<router-outlet></router-outlet>
...so it looks like angular router needs atleast one routerLink in html template.. thats pretty strange..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…