DEV Community

Rishi
Rishi

Posted on

4 1

Add bootstrap to angular

Step 2. Add Bootstrap to Angular Using angular.json

Open the angular.json file of your project and include:

            "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"
            ],

Step 1. Install Bootstrap & Jquery using NPM

 $ npm install --save bootstrap
 $ npm install --save jquery

OR

Step 1. Install Bootstrap & Jquery using Yarn

 $ yarn add bootstrap
 $ yarn add jquery

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay