Sitemap
YavarTechWorks

Today a Reader, Tomorrow a Leader

Adding Bootstrap to angular application.

This Blog explains the detailed process of downloading Bootstrap to an Angular Application through angular/CLI that supports Bootstrap classes in our Angular Application.

3 min readSep 3, 2022

--

Press enter or click to view image in full size

Hey happy Stranger!

You:😟

Okay, I also don’t want to be a stranger to you. So let’s try to build a friendship before leaving this marriage hall

{ Angular Application }

Hey Mr/Mrs. Stranger! , Why the couple is not looking good? Whether they applied make-up are not?

{ Bootstrap class not applied to the elements in Angular Application }

Press enter or click to view image in full size
Bootstrap class is not applied even if they have been used in elements

You:👎🏻

Why? Whether the make-up artist { Bootstrap } came or not?

You:👎🏻

Where is he Now?

You: ✈️

Oh! He is at the Airport Check-in counter?

You: 👍

Sorry to ask this silly question, but what needs to be shown at the Airport Check-in counter?

{ What do we want to do to install bootstrap in angular application }

You: 👇

npm view bootstrap
Press enter or click to view image in full size

What Next?

You: 👇

npm install bootstrap@latest --save
Press enter or click to view image in full size

Then?

You: 👇

npm install @popperjs/core

Press enter or click to view image in full size

Who is the Popperjs ?

You: 💁🏻‍♀️

Yeah! Without Assistant 'popperjs 💁🏻‍♀️' it will be very difficult for him to manage everything

{ To handle some classes that depend on javascript functions like dropdown, toggles, etc …}

You: 👍

whether they will reach on time?

You:👍

Get vijay s’s stories in your inbox

Join Medium for free to get updates from this writer.

…. ⏳ …

You:🛄

What? When they have reached? Where are they now?

You: 👇

bootstrap. min.css fie inside
Bootstrap. min.js

Okay. Bootstrap with his baggage 🛄is here. Where is his Assistant popper ? 💁🏻‍♀️

You: 👇

Popper. min.js

Hey, man! Go and get them to the groom and Bride’s Room. Let them start their duty. I think the time is getting out.

{ Insert the above files in the Angular.json }

You: 👍

Have you done it?

You: 👍 , 👇

Press enter or click to view image in full size
Update angular.json

Great man. Whether they started to make up the couple?

You: ❌

Why?

You: 😋​

Yeah! They could be hungry because they have traveled a lot. First Serve them food.

{ Rerun the Application again after installing the bootstrap packages Otherwise it will not work }

You: 👍 , 🍽️ , 👇

ng serve
Press enter or click to view image in full size
ng serve command

Great. Let’s wait until they finish their work.

You: 👍

... ⏳ …

See now, They look wonderful.

You: 🥳 … 👰🏽​🤵​

Press enter or click to view image in full size
Bootstrap installed with version 5.2.0 ( latest )
Press enter or click to view image in full size
A simple Angular page with some bootstrap classes like navbar, card, dropdown

Hey, thanks for your company Stranger. One last request. Anyone has thrown the invitation below. Please take it.

I have shared what I know and waiting for you to share the review on it …

--

--