Reputation: 4846
Currently I have to do:
npm install bootstrap
and npm install jquery
src\assets
In index.html
<script src="assets/jquery/jquery.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
Any better way?
Upvotes: 1
Views: 934
Reputation: 28328
Read this and you will understand:
https://github.com/angular/angular-cli#3rd-party-library-installation
Basically you just have to add it to the scripts
property in the angular-cli.json
file (apps[0]
).
"scripts": [
"../node_modules/jquery/dist/jquery.js",
"../node_modules/tether/dist/js/tether.js",
"../node_modules/bootstrap/dist/js/bootstrap.js"
]
Upvotes: 1