【发布时间】:2016-06-02 06:09:47
【问题描述】:
使用新的 RC 路由器定义默认路由的一种方法是
@Routes([{ path: '/', component: Home }])
但我如何才能在最初显示一个非空路径的页面?喜欢
@Routes([{ path: '/home', component: Home }])
这永远不会显示主页内容,但我想要它。
如何在新的 RC1 路由器中做到这一点?
【问题讨论】:
标签: angular angular2-routing angular2-router