how to add bootstrap in angular 11 code example
Example 1: how to add bootstrap in angular
@import "~bootstrap/dist/css/bootstrap.css"
"styles": [
"./node_modules/bootstrap/dist/css/bootstrap.css",
"src/styles.css"
],
Example 2: install bootstrap in angular
$ npm install bootstrap
Example 3: adding bootstrap to angular
$ npm install --save bootstrap
Example 4: installing bootstrap in angular 9
.... "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 5: how to install bootstrap in angular
npm install bootstrap
Example 6: how to install bootstrap in angular 10
$ npm install -g @angular/cli