另外在path:main 最後有一個children,這表示/main底下還有子路由。 最後輸出時要注意如果是根路由(全App唯一一個)就必須用 RouterModule.forRoot.
確定! 回上一頁