Getting to Angular 2
summary
A concrete migration path shows AngularJS and Angular 2 running side-by-side using ngUpgrade, a custom URLHandlingStrategy to let both routers coexist, and rewriting pages one-by-one while keeping shared services available. A Google app of about 450,000 lines migrates iteratively, gains AOT and smaller bundles (~22–40 KB), and uses lazy loading per-page modules successfully in the demo. Caveats: old $compile directives cannot be upgraded, route events differ between routers, and services that live in lazy child injectors must be hoisted into the root to remain accessible.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:45Why Angular 2
- 4:04ng upgrade
- 9:04ng to router
- 12:27migrating to Angular 2
- 15:28lazy loading
- 20:57cautionary notes
related talks
20mUpgrading Enterprise Angular Applications
44mMigrating to Angular 2
23mUpgrading to Angular without ngUpgrade
24mMigrating from AngularJS to Angular
18mAngular 1.3 meets Angular 2.0
24mGCP: Migrating a 1M+ LOC project from AngularJS to Angular
20mAddicted to AngularJS?
37mCase Study - Migrating AngularJS Projects Safely to Angular 2
