ng2引入bootstrap、jquery
ng2笔记(angular-cli)
ng2引入bootstrap、jquery
npm install ng2-bootstrap bootstrap --save
npm install jquery --save
在angular-cli.json里引入
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": [
"../node_modules/jquery/dist/jquery.min.js",
"../node_modules/bootstrap/dist/js/bootstrap.min.js"
]
ng2引入bootstrap、jquery
https://zhangfuli.github.io/2017/04/16/ng2引入bootstrap、jquery/