当我将Jquery和popper.js集成到angular中时无法正常工作

问题描述

我想将jquery和popper.js集成到我安装的角度项目中,并添加到packages.json和angular.json中,但不起作用

packages.json:

"dependencies": {
    "@angular/animations": "~10.0.6","@angular/common": "~10.0.6","@angular/compiler": "~10.0.6","@angular/core": "~10.0.6","@angular/forms": "~10.0.6","@angular/platform-browser": "~10.0.6","@angular/platform-browser-dynamic": "~10.0.6","@angular/router": "~10.0.6","popper.js": "^1.16.1","bootstrap": "^4.5.3","jquery": "^3.5.1","rxjs": "~6.5.5","tslib": "^2.0.0","zone.js": "~0.10.3"
  }

angular.json:

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

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)