I am moving my first steps with angular 2, in particular I am using the official angular-cli tool to create a new project.
I created a new project this way
ng new [my-project-name]
The project was created correctly.
After that, I would like to install bootstrap 4, and I follow the official manual on the angular-cli page.
I install bootstrap with npm:
npm install bootstrap@next
and I will add a line to my angular-cli.json:
"scripts": [ "../node_modules/jquery/dist/jquery.js", "../node_modules/tether/dist/js/tether.js", "../node_modules/bootstrap/dist/js/bootstrap.js" ], "styles": [ "styles.css", "../node_modules/bootstrap/dist/css/bootstrap.css" ],
in the application object.
When I create an application and run it on the server with: ng serve
I did not find a link for bootstrap css and javascript in index.html.
I do not understand whether this file will be imported automatically added to my index.html or if I need to add it manually.
angular bootstrap-4 angular-cli
user3790694
source share