一、创建组件
ng generate component component-name #简写 ng g c component-name
ng generate directive|pipe|service|class|guard|interface|enum|module #还可以创建其他的
#创建用户模组
ng g c components/users/list #创建用户查询列表画面
ng g c components/users/edit #创建用户新增画面
ng g c components/users/view #创建用户查看画面
#其他
ng g c components/home #首页组件
ng g c components/navbar #导航
ng g c components/sidebar #左侧导航
ng g c components/login #登陆
ng g c components/register #注册
ng g c components/settings #设置
ng g c components/pageNotFount #页面404
二、会在src/app中创建components目录并创建相关组件