第一步
进行安装Bootstrap的方式
npm install -p bootstrap
第二部
进行更改angular-cli.json文件中,增加如图内容:
"styles": [ "styles.css", "../node_modules/bootstrap/dist/css/bootstrap.min.css" ], "scripts": [ "../node_modules/bootstrap/dist/js/bootstrap.js" ],
进行安装Bootstrap的方式
npm install -p bootstrap
进行更改angular-cli.json文件中,增加如图内容:
"styles": [ "styles.css", "../node_modules/bootstrap/dist/css/bootstrap.min.css" ], "scripts": [ "../node_modules/bootstrap/dist/js/bootstrap.js" ],