创建带路由配置文件的模块
ng g module module/user --routing
ng g module module/article --routing
ng g module module/product --routing
创建模块的根组件
ng g component module/user
ng g component module/article
ng g component module/product
添加其他组件
ng g component module/user/components/profile
ng g component module/product/components/plist
ng g component module/product/components/pinfo
配置子模块的路由
user-routing.module.ts
//1.引入需要设置的组件