Angular 4 Bootstrap dropdown require Popper.js

前端 未结 4 2033
伪装坚强ぢ
伪装坚强ぢ 2020-12-23 09:28

I have a fresh created Angular 4 CLI app. After running this:

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

and editing .angular

4条回答
  •  囚心锁ツ
    2020-12-23 09:53

    Include popper.js before bootstrap.js:

    "scripts": [
      "node_modules/jquery/dist/jquery.slim.min.js",
      "node_modules/popper.js/dist/umd/popper.min.js",
      "node_modules/bootstrap/dist/js/bootstrap.min.js"
    ],
    

提交回复
热议问题