不知何故,我的引导程序和jquery文件拒绝在角度项目上加载



我在我的 angular 项目上通过以下命令安装了引导程序

npm install --save bootstrap jquery
"styles": [
"../node_modules/bootstrap/scss/bootstrap.scss",
"styles.scss"
]
"scripts": [
"../node_modules/jquery/dist/jquery.min.js",
"../node_modules/bootstrap/dist/js/bootstrap.min.js"
]

问题是 sass 文件在我将其导入 sass 文件之前从未工作过,这意味着我的 angular.json 配置不起作用

@import "~bootstrap/scss/bootstrap.scss";// this worked

请提供任何帮助,因为我在其他一些项目中使用了它,它有效,而在其他项目中它不起作用。我想知道做错了什么。

使用此方法

"styles": [
"node_modules/bootstrap/dist/css/bootstrap.css"
]

最新更新