第一步 ;下载 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"
],


posted on 2018-04-10 22:22  lshan  阅读(162)  评论(0编辑  收藏  举报