![](/img/trans.png)
[英]I am getting following error when I try to create a new angular project
[英]I am getting this error when i try to add bootstrap in my Angular project
我正在学习一个教程,这就是我必须使用这些命令的原因。 我用这个。
npm install bootstrap --save
@import "~bootstrap/dist/css/bootstrap.css";
You simpley do
npm install bootstrap
and then map the respected soure location into your angular.json file
"scripts": [
"./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
],
"styles": [
"styles.css","./node_modules/bootstrap/dist/css/bootstrap.min.css"
]
And restart your app
or
You can try with ngx also
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.