1、安装 设置开发环境
npm install -g @angular/cli
2、创建新项目
ng new myApp / ng new router routing
3、安装依赖插件
cd myApp
npm install
4、启动开发服务器
ng serve --open
5、创建组件模块
ng g component myComponent
本文详细介绍如何使用Angular CLI搭建开发环境,包括安装配置、创建新项目、安装依赖、启动服务器及创建组件模块等关键步骤。
1、安装 设置开发环境
npm install -g @angular/cli
2、创建新项目
ng new myApp / ng new router routing
3、安装依赖插件
cd myApp
npm install
4、启动开发服务器
ng serve --open
5、创建组件模块
ng g component myComponent
转载于:https://www.cnblogs.com/vhen/p/7572075.html
734
2197
2万+

被折叠的 条评论
为什么被折叠?