how to install bootstrap in angular 11 code example

Example 1: install angular bootstrap

# From project directory:
npm install --save bootstrap
npm install --save jquery

# Now edit `angular.json`
# Position: `projects -> architect -> build -> options`
# To `styles`, add "node_modules/bootstrap/dist/css/bootstrap.css"
# To `scripts`,
#   add "node_modules/jquery/dist/jquery.js"
#   and also "node_modules/bootstrap/dist/js/bootstrap.js"
# Test with
# <

Example 2: how to install bootstrap in angular 11

....      "styles": [        "node_modules/bootstrap/dist/css/bootstrap.min.css",        "src/styles.css"      ],      "scripts": [          "node_modules/jquery/dist/jquery.min.js",          "node_modules/bootstrap/dist/js/bootstrap.min.js"      ].....

Example 3: how to install bootstrap in angular 11

npm install popper.js --save

Example 4: how to install bootstrap in angular 11

@import "~bootstrap/dist/css/bootstrap.css";

Example 5: how to install bootstrap in angular 11

npm install bootstrap --save

Example 6: how to install bootstrap in angular 11

npm install jquery --save

Tags:

Misc Example