Angular 4 路由
1. 创建工程
ng new router --routing
2. 创建home和product组件
ng g component home
ng g component product
3. 配置路由
4. 主页面导航
原文:http://www.cnblogs.com/linlf03/p/7356312.html