Chapter 1. Strategies for Upgrading to Angular 2

This chapter will cover the following recipes:

  • Componentizing directives using the controllerAs encapsulation
  • Migrating an application to component directives
  • Implementing a basic component in AngularJS 1.5
  • Normalizing service types
  • Connecting Angular 1 and Angular 2 with UpgradeModule
  • Downgrading Angular 2 components to Angular 1 directives with downgradeComponent
  • Downgrading Angular 2 providers to Angular 1 services with downgradeInjectable

Introduction

The introduction of Angular 2 into the Angular ecosystem will surely be interpreted and handled differently for all developers. Some will stick to their existing Angular 1 codebases, some will start brand new Angular 2 codebases, and some will do a gradual ...

Get Angular 2 Cookbook 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.