How to Add Bootstrap to Angular project


npm install bootstrap

Add dependencies for Bootstrap:

npm install jquery popper.js

Open the file angular.json in the root of your project.
Add "node_modules/bootstrap/dist/css/bootstrap.min.css" in the styles[] array.

How to remove Bootstrap:

npm uninstall bootstrap

How to install Bootstrap 5:

npm install bootstrap@5.0.0-alpha1
npm install popper.js


Leave a Reply

Your email address will not be published. Required fields are marked *