Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

converting an existing angular 5 project to an ionic 3 project

I was working on an angular 5 project for 3 months and I was building that using Cordova to export android and Ios apps. Now I need some native functionalities for my app but I couldn't find a way to convert or wrap my angular 5 web app to Ionic 3 to use the native abilities of Ionic. Is there any way to convert it easily? without UI changing.

like image 939
Mohammadreza Imani Avatar asked Mar 05 '23 22:03

Mohammadreza Imani


2 Answers

The only way I can think of, is by using a new blank Ionic project.

Create the project with the command ionic start myApp blank. This will create everything that Ionic & Cordova needs. Then, copy your files into this project manually. Since Ionic uses Angular, you should not have to make major changes.

like image 138
Delwyn Pinto Avatar answered May 08 '23 21:05

Delwyn Pinto


There is no quick way. You need to build from scratch. But there are "shortcuts" and if you done your job well on seperating code and layout, you can significantly speed up the build.

like image 21
fransyozef Avatar answered May 08 '23 21:05

fransyozef