Upgrade from Ionic 1 to Ionic 2


#1

Hi All,

I am new to Ionic and Angular. I created an app in Ionic Creator and am now had editing it in my IDE (Eclipse) in order to hook it up to some Java REST services etc.

My question is, should I continue as is, or should I try upgrade to Ionic 2?

If I do upgrade,

  • Is it possible without having to refractor my code too much?
  • Are there many benefits?

Thank you


#2

I don’t know how far you are with your project but I would consider moving to ionic 2 as soon as possible. Angular 1 and 2 are completely different framework so I don’t think there’s any easy way to translate your existing code.


#3

Is Ionic 2 (Angular 2) easier to learn than Ionic 1? I am still new to Angular and Ionic


#4

Angular 2 concepts are easier to understand,
and TypeScript is a huge plus, I recommend you to start to play with it ASAP :wink:


#5

Thank you both for your advise. I am starting to install Ionic 2 now.


#6

you better go with ionic 2 (angular 2) not because it’s easier to learn but because it’s the future of ionic… why would try to learn something that will surely not be supported as much as the brand new framework.


#7

Unfortunately you will have to refactor most of your code as angular2 is nothing like angular1.

To decide whether you should upgrade, I would answer these questions:

  1. Will this be a production app, or is it a personal side project?
  2. How much time do you have to bring the codebase up to date when a new ionic release comes out?

If you will be using it in a production environment and do not have time to constantly keep the code up to date, I would suggest going with Ionic1. Otherwise, Id’ go with Ionic2.


#8

Thank you all for your advise. I am in the early stages of creating an app, so it makes sense to go to Ionic 2.