Angular 2 RC1 Router doesn't work without any routerLInk

后端 未结 1 770
情话喂你
情话喂你 2020-12-11 21:17

i have serious problem with angular 2 (RC1) router.

This code works:




        
1条回答
  •  隐瞒了意图╮
    2020-12-11 21:41

    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 () into your template.

    0 讨论(0)
提交回复
热议问题