bootstrap 4 in Angular 2 dropdown not working

后端 未结 14 1193
旧巷少年郎
旧巷少年郎 2021-02-04 08:36

I have followed the following to install bootstrap 4 into my Angular 2 project: Accepted Answer, following the first 1,2,3 and 4 steps

However when I add the following <

14条回答
  •  执笔经年
    2021-02-04 09:15

    Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs. Also note that all plugins depend on jQuery (this means jQuery must be included before the plugin files).

    In .angular-cli.json add the following lines to the scripts section:

    # version 4.x
      "scripts": [
        "../node_modules/jquery/dist/jquery.js",
        "../node_modules/bootstrap/dist/js/bootstrap.js",
      ]
    

    Checkout definition here

提交回复
热议问题