angularjs 整合 bootstrap

第一步 ;下载 bootstrap  jquery  ppper.js

npm install bootstrap@4.0.0-beta.2 jquery popper.js --save

第二步:

打开packge.json    看是否导入:

第三步:配置:到:angular-cli.json        -------dao  node.medles 中找到 bootstrap 包 

 "styles.css"
        "../node_modules/bootstrap/dist/css/bootstrap.css"
      ],
      "scripts": [
        "../node_modules/jquery/dist/jquery.js",
        "../node_modules/popper.js/dist/popper.js",
        "../node_modules/bootstrap/dist/js/bootstrap.js"
      ],
View Code
 
 "styles.css"
"../node_modules/bootstrap/dist/css/bootstrap.css"
],
"scripts": [
"../node_modules/jquery/dist/jquery.js",
"../node_modules/popper.js/dist/popper.js",
"../node_modules/bootstrap/dist/js/bootstrap.js"
],


原文地址:https://www.cnblogs.com/lshan/p/8783587.html