Generating a New Project

Angular supports many powerful tools like server-side compilation and service workers. Using these advanced tools requires a specific project structure and build chain. Keeping track of all these details while simultaneously developing new features can be a thankless task. Fortunately, the Angular team has bundled up all their best practices into a command-line generator that allows us to easily create new components while still adhering to best practices. Install it globally with: npm install -g @angular/cli. (This book uses version 6.0.8 of the Angular CLI.) You’ll use it throughout the Angular section of this book.

Using the Angular CLI

With that in mind, let’s use the CLI to bootstrap this chapter’s project: a photo ...

Get Build Reactive Websites with RxJS now with the O’Reilly learning platform.

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