install bootstrap angular

To install Bootstrap in an Angular project, you can follow these steps:

  1. Open your Angular project in a terminal or command prompt.
  2. Run the following command to install Bootstrap using npm:
npm install bootstrap
  1. Once the installation is complete, open the angular.json file in the root directory of your project.
  2. Locate the styles array within the architect > build section.
  3. Add the Bootstrap CSS file to the array. The file path will depend on your project's directory structure, but it is usually node_modules/bootstrap/dist/css/bootstrap.min.css. Here's an example of how the styles array might look:
"styles": [
  "src/styles.css",
  "node_modules/bootstrap/dist/css/bootstrap.min.css"
]
  1. Save the angular.json file.
  2. You can now use Bootstrap classes and components in your Angular project.

That's it! Bootstrap should now be installed and ready to use in your Angular project.