1、创建一个项目
ng new 项目名
2、进入项目
cd 项目名
npm install 安装依赖
ng serve --open 运行项目
3、自定义组件
ng g component components/header
components:文件夹名字
header:组件的名字
1、创建一个项目
ng new 项目名
2、进入项目
cd 项目名
npm install 安装依赖
ng serve --open 运行项目
3、自定义组件
ng g component components/header
components:文件夹名字
header:组件的名字