1、angular 使用 bootstrap
安装bootstrap
npm install bootstrap --save
安装bootstrap-icons
npm i bootstrap-icons
并在angular.json添加配置
"styles": [ "src/styles.scss", "./node_modules/bootstrap/dist/css/bootstrap.min.css", "./node_modules/bootstrap-icons/font/bootstrap-icons.css" ], "scripts": [ "./node_modules/bootstrap/dist/js/bootstrap.js" ]