Angular 2 RC1 Router doesn't work without any routerLInk

好久不见. 提交于 2019-11-28 13:50:27

This is currently a bug present in the Angular 2 RC Router https://github.com/angular/angular/issues/8409.

As mentioned in the GitHub issue, to get around it you can either inject the router into AppComponent or just put an empty router link (<a [routerLink]="['/']"></a>) into your template.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!