在angular中在父级路由访问二级路由的问题。

249 阅读1分钟

image.png
如图中 父级路由passport它的子路由有 login与lock这两个。 如果在其父级passport中想要访问子路由可以直接写

image.png 通过router-outlet访问其子路由。