What this book covers
This book is up to date for the 2.4 release and is compatible through the 4.0 release as well, and
it does not have any code based on the beta or release candidates.
Chapter 1, Strategies for Upgrading to Angular 2, is an overview of a number of ways to
migrate an Angular 1 application to Angular 2. Although there is no one-size-fits-all upgrade
strategy, you will find that these recipes demonstrate some ways that will allow you to preserve a
large amount of your existing Angular 1 code base.
Chapter 2, Conquering Components and Directives, gives a broad and deep set of examples
involving what Angular 2 components are and how to use them. Angular 2 applications are built
entirely of components, and this chapter offers you a total rundown of their role.
Chapter 3, Building Template-Driven and Reactive Forms, covers the reworked Angular 2 form
modules. Angular 2 offers you two primary styles of erecting form features, and this chapter
covers both of them in depth.
Chapter 4, Mastering Promises, shows how the Promise object has a role in Angular 2. Although
RxJS has subsumed some of the usefulness of Promises, they are still first-class citizens in ES6
and still play a crucial role.
Chapter 5, ReactiveX Observables, gives you a crash course in how Angular 2 has embraced
reactive programming. It includes recipes that demonstrate the basics of Observables and
Subjects, as well as advanced implementations that take RxJS to its limits.
Chapter 6, The Component Router, takes you through the totally reworked routing module in
Angular 2. It covers both routing basics as well as an array of advanced routing concepts unique
to Angular 2.
Chapter 7, Services, Dependency Injection, and NgModule, describes the new and improved
dependency injection and module strategies of Angular 2. It gives you all the pieces you need to
break your application into independent services and modules, as well as ideal strategies for
connecting those pieces together.
Chapter 8, Application Organization and Management, is a broad overview of how you can
manage your Angular 2 application inside and outside the client. Angular 2 introduces a number
of layers of complexity that require advanced tooling, and this chapter will guide you through how
to approach them.
Chapter 9, Angular 2 Testing, will guide you through both how to set up test suites for Angular 2
as well as how to write various types of tests for these suites. Many developers avoid testing
when learning a framework anew, and this chapter gently guides you through Angular 2's excellent

test infrastructure.
Chapter 10, Performance and Advanced Concepts, is a crash course on the dizzying array of
complex concepts that Angular 2 comes with out of the box. This chapter covers program
organization and architecture, framework features and tooling, as well as compile-time