Angular CLI --添加bootstrap
发布时间:2020-12-17 08:38:51 所属栏目:安全 来源:网络整理
导读:1、首先下载bootstrap组件 npm install jquery --save npm install popper.js --save npm install bootstrap@ next --save 2、修改配置文件 "scripts" : [ "../node_modules/jquery/dist/jquery.slim.js" , "../node_modules/popper.js/dist/umd/popper.js"
1、首先下载bootstrap组件 npm install jquery --save
npm install popper.js --save
npm install bootstrap@next --save
2、修改配置文件 "scripts": [
"../node_modules/jquery/dist/jquery.slim.js","../node_modules/popper.js/dist/umd/popper.js","../node_modules/bootstrap/dist/js/bootstrap.js"
],"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.css","styles.css"
],
3、重启server(调了半天一直没生效就是因为当修改了angular-cli.json时需要重启server) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |