angular install bootstrap 5 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
# <<div class="alert alert-primary" role="alert"> Bootstrap alert</div>
Example 2: install bootstrap angular
npm install --save bootstrap
Example 3: install bootstrap in angular
$ npm install jquery
Example 4: install bootstrap in angular
$ npm install bootstrap
Example 5: angular add bootstrap
npm install bootstrap
Example 6: how to install bootstrap in angular 10
$ npm install -g @angular/cli