ngAir 79 - ng1 to ng2 Migration with Joe Eames
Joe’s background with migrations
Refactoring your ng1 app before migrating to ng2
Component based architecture
What are the different approaches? 3 options:
Big bang - should only do if takes a couple weeks, less than 10k lines of code
Leave it alone - Maintain it in Angular 1
Slowly convert - Angular 1 app that calls Angular 2 for some pieces
Can convert any Angular 2 component into Angular 1 directive
When slowly converting, important to mitigate risk by doing smaller changesets
Angular 2 an order of magnitude faster
Angular 1 is the slow piece
Overhead with cooridination, but not that much
What to do if no tests in current ng1 app?
Do you need to have two http services running?
What do you think of Angular’s approach to migration compared to Ember’s?
Answer Q&A from Twitter
Angular 2 Migration on Pluralsight https://www.pluralsight.com/courses/migrating-applications-angular-2
Angular Modules - Root Module by John Papa