install bootstrap angular 11 code example
Example 1: install angular bootstrap
npm install --save bootstrap
npm install --save jquery
Example 2: install bootstrap angular 9
From angular cli:
npm install --save bootstrap
npm install --save jquery
Then add the following paths to angular.json:
"node_modules/bootstrap/dist/css/bootstrap.css" in the projects -> architect -> build -> styles array
"node_modules/jquery/dist/jquery.js" in the projects -> architect -> build -> scripts array
"node_modules/bootstrap/dist/js/bootstrap.js" in the projects -> architect -> build -> scripts array
Example 3: install bootstrap in angular 9
npm install bootstrap --save
Example 4: install bootstrap angular
npm install --save bootstrap
Example 5: install bootstrap in angular
$ npm install bootstrap
Example 6: bootstrap4 angular install step by step
{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular-bootstrap-examples": { "projectType": "application", "schematics": {}, "root": "", "sourceRoot": "src", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "outputPath": "dist/angular-bootstrap-examples", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", "aot": true, "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "./node_modules/bootstrap/dist/css/bootstrap.css", "src/styles.css" ], "scripts": [ "./node_modules/jquery/dist/jquery.js", "./node_modules/bootstrap/dist/js/bootstrap.js" ] },