Introducing Koala Prospector! Bringing Waterfall Enrichment to Reps

Learn More!
Ionic

Ionic

In general, an Ionic 1 app is made up of a bunch of controllers, services and templates, so the process of converting an Ionic 1 application into an Ionic 2 application goes something like this (assuming you have a reasonably well structured Ionic 1 application): Generate a new Ionic 2 application Create a component for each feature your application has Copy the relevant code from your Ionic 1 controllers and services into the class definition for each component. Some syntax changes are required here but the end result looks pretty similar to a controller. Copy over the templates and update the syntax. Again, there are some changes in the syntax but your templates will end up looking pretty similar. That's a pretty big over simplification, there are other changes required outside of just copy and pasting (some things are just fundamentally different, like navigation) - but once you get the hang of it and become more familiar with Ionic 2 it's pretty easy. BONUS CONTENT: Want a little more discussion on Ionic 2? Listen to my interview with Mike Hartington from the Ionic team about Ionic 2. Depending on how closely your Ionic 1 project reflects the Ionic 2 structure, this process could be easier or harder for you. Ideally, the folder structure of your Ionic 1 project should be organised by feature and have all of the code required for a specific function separated out into its own folder (so the controller and template for a "Login" feature is in its own "Login" folder) - this will make the conversion process a lot easier. Take a look at this image that highlights the difference:

Last updated on

About Ionic

Founded

2012

Estimated Revenue

$1M-$10M

Employees

51-250

Funding / Mkt. Cap

$25M

Category

Sector

Information Technology

Industry Group

Software & Services

Industry

Software

Location

City

Madison

State

Wisconsin

Country

United States