How to install Bootstrap for Angular project?
How to install Bootstrap for Angular project?
Install Bootstrap Package using command
npm install --save bootstrap@3
All files get installed at location : node_modules/bootstrap/dist/css/bootstrap.min.css
Add Bootstrap reference to the styles[] array
1. if Using Angular CLI 6+ Open angular.json file
2. if Using Lower Version, Open .angular-cli.json file.
In above files add reference as
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css"
],
Bootstrap is now installed for your Angular project
Suggested Readings
Bootstrapping in Angular: How It Works Internally