We love Ionic and have a medium-sized 1.X application that we want to migrate to Ionic 2 / Angular 2. Our 1.X code follows John Papa’s style guide with a lot of directives, relatively thin controllers, and a component-based directory layout.
There’s some basic info at http://ionicframework.com/docs/v2/getting-started/migration/ on migration, and Josh Morony published a sample app conversion tutorial at http://www.joshmorony.com/how-to-convert-an-ionic-1-application-to-ionic-2/ in November.
Angular came out with ng-upgrade as a way to allow Angular 1.X and 2.X to co-exist in the same application, so that as we’re building out new features, we could be building them out in Angular 2. https://angular.io/docs/ts/latest/guide/upgrade.html
I’m still in fact finding mode, trying to figure out how we migrate from Ionic 1 to 2… if anyone has figured this out already then would appreciate any advice:
- Has anyone tried using ng-upgrade to gradually migrate their Ionic app to use Angular 2 while still using Ionic 1 components?
- Is it possible for Ionic 1 and Ionic 2 components to co-exist in the same application, if using ng-upgrade?
- Are there any plans to provide more detailed migration guidelines or CLI tools for moving Ionic 1.X to 2.0?
- Will an upcoming Ionic 1.X release include Angular 1.5 to allow for migration to Angular 2.0 style components?
Excited to migrate over to 2.X this year, and hoping to manage our ongoing development to align with 2.X as much as possible. Thanks in advance for any tips!