项目地址:https://github.com/xu1260114313/angular.git
完成后:
1.通过node及npm安装angular-cli:
npm install -g @angular/cli
2.检测angular-cli是否安装成功:
3.通过angular-cli新建项目,ng new voteWeb(项目名称)
4.运行项目:
1)首先通过cd命令进入刚才创建的项目目录中
2)使用命令 ng serve, 启动项目
3)结尾出现如下状况,项目启动成功
4)在浏览器输入localhost:4200, 4200是项目默认端口