80 words
1 minute
Angular with Bootstrap setup
Prerequisites
- Node.js
- Node.js package manager (npm, yarn, pnpm)
- Visual Studio Code
- Angular CLI
Steps
- Go to the folder you want to create and run command
Terminal window ng new project-nameNOTE
Change
project-name
with your project name - Select configurations
- Run command
Terminal window cd project-name & code . - Open terminal (
Ctrl + J
- Visual Studio Code shortcut) and installbootstrap
Terminal window ng add @ng-bootstrap/ng-bootstrap - Install
popper.js
Terminal window npm i @popperjs/core - Update config in
angular.json
{// ..."projects": {"project-name": {//..."architect": {// ..."options": {"scripts": ["node_modules/@popperjs/core/dist/umd/popper.min.js","node_modules/bootstrap/dist/js/bootstrap.bundle.js"]},}}}} - Start the project
Terminal window npm start
References
Angular with Bootstrap setup
https://slimaeus.github.io/posts/angular-with-bootstrap-setup/