ng g

ng g c <组件名>

--spec=false 排除生成规范文件(“spec.ts” 为测试文件)