安装Angluar/cli
npm install -g @angular/cli@latest
检测版本
ng -v
创建新项目
ng new my-app(项目名称)
进入项目
cd my-app
预览目录
dir
启动开发服务器
ng server
监听端口:4200;
测试监听服务器:http://localhost:4200/
安装Angluar/cli
npm install -g @angular/cli@latest
检测版本
ng -v
创建新项目
ng new my-app(项目名称)
进入项目
cd my-app
预览目录
dir
启动开发服务器
ng server
监听端口:4200;
测试监听服务器:http://localhost:4200/