Migration plan

Now that we are done with our Ionic v1 Todo app, we will be looking at migrating the same to Ionic 2.

Note: If you were planning to migrate from Ionic 1 to Ionic 3, you would be following a similar approach.

The plan is simple; we are going to scaffold a new blank template using the --v2 flag and start putting stuff together. The following table would be a good starting point:

Component Ionic 1 Ionic 2
Ionic starter template Blank Blank
Bootstrap application ng-app NgModule
Navigation State router NavController
Components Templates and controllers @Component
Services/factory Service provider @Injectable Provider
Persistence Local storage Storage API
Device interaction NgCordova Ionic Native
Local notifications ...

Get Learning Ionic - Second Edition 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.