Skip to main content
Back to Journal
Angular

Building An Angular App: Part 4

Adding Bootstrap to Angular

In this final part of our Angular series, we'll add Bootstrap to our application to give it a polished, professional look. Bootstrap provides a responsive grid system and pre-built components that work well with Angular.

Installing Bootstrap

First, we need to install Bootstrap into our Angular project. We can do this via npm:

npm install bootstrap

Then add the Bootstrap CSS to your angular.json file in the styles array:

"styles": [
  "node_modules/bootstrap/dist/css/bootstrap.min.css",
  "src/styles.css"
]

Styling Our Components

With Bootstrap installed, we can now apply responsive classes to our components. The navbar, forms, and card layouts all benefit from Bootstrap's utility classes.

Final Touches

We've now completed our Angular posting application with full CRUD functionality, routing, and a responsive Bootstrap-styled interface. The application demonstrates key Angular concepts including components, services, modules, routing, and two-way data binding.

AngularBootstrapTypeScript