Installing Bootstrap

Without further ado, let's get started and install Bootstrap for Angular.

When using Bootstrap with a standard web application without a frontend framework such as Angular--you need to use content delivery network (CDN) to fetch the three parts that comprise the Bootstrap framework (bootstrap.css, bootstrap.js, and glyphicons). These calls, even when downloading minified files, still take time (for example, three HTTP requests, downloading, check summing, and so on) for your clients. With Angular, we could follow the same approach and simply add references to some CDN in src/index.html, but it would be a considerable mistake.

First of all, if the user does not own a cached copy of the resource, then we will suffer the ...

Get Expert Angular now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.