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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.