Converting Angular 2 web Application code into ionic 2 mobile application code?
angularjs, ionic-framework, typescript
Solution
Ionic is a framework wrapper for angular so your current app can technically be converted but, you will have to decide if it is worth it.
Because Ionic has framework specific components you will have to rewrite your code based on the ionic spec, to how you want to style the app. The navigation in ionic is also a bit different and uses a layered navigation with `pop()` and `push()` which would have to be changed.
Then there is the issue that ionic is held together with cordova which is not a default import in a standard ng2 app. So there is a lot of configuration that you have to implement on top of the default angular stuff. Which could end up becoming very blotted.
I think the best approach here is to start a new ionic app ( download the ionic cli )
_ ionic start
Then you have a fresh ionic project with all the configuration taken care of. Then in your other angular 2 app , write the core functionality into services and components that you can export into the new ionic app.
Problem
I have a web application code written in Angular 2. I want to build a hybrid mobile application using ionic 2 for the same web application. As ionic 2 uses core concepts of angular 2:- is it possible to use as it is angular 2 code in ionic 2 with minor platform compatibility fixes ? is there any way to convert the angular 2 code into ionic 2? OR i have to code again in ionic 2 for mobile applications? Any Help would be appreciated .