DEV Community

Bipon Biswas
Bipon Biswas

Posted on

How to Setup Angular Bootstrap

Step 1: start project npm start using this command into terminal. Use npm to use Bootstrap

npm install bootstrap --save

What this does. It does download bootstrap and store it into node modules folder. But this --save flag also add bootstrap as a dependency injection in package.json file.

Let me show you.

Alt Text

Now go to package.json file.

Alt Text

Step 2: Import bootstrap style.css file

@import "~bootstrap/dist/css/bootstrap.css"
Enter fullscreen mode Exit fullscreen mode

Now let's get back to our courses.component.ts file.

<h3>Bootstrap Button</h3>
<button class="btn btn-primary">Button</button>
Enter fullscreen mode Exit fullscreen mode


Alt Text

Latest comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.