Angular 8 (二)项目创建

1.cmd 进入项目目录

2. 运行命令 ng new [appname]

3. npm intall 安装包

4. ng server 启动服务器 (默认4200端口)

测试: 从浏览器打开 http://localhost:4200

5. 引入bootstrap 和JQuery

   npm install bootstrap

   npm install jquery

   在angular.json 中添加bootstrap css 样式和Js引用

  因为bootstrap 用到了 jquery 库,所有添加 js 引用时,JQuery 要在 Bootstrap 前面引入。

原文地址:https://www.cnblogs.com/crdanding/p/11607243.html