1.生成辅助路由组件ng g component home
2.配置路由
3
angular4辅助路由
原文:https://www.cnblogs.com/boonook/p/8685118.html