How to convert an existing AngularJS 2 web app to a Cordova app?

帅比萌擦擦* 提交于 2019-12-10 15:45:53

问题


I have a webapp which I build with Angularjs 2.0, I want to convert it to android apk and install it on android phone and test.

I dont have any experience in building mobile native app or converting webapp to native app.

I have gone through How to convert an existing AngularJS web app to a Cordova app? Any suggestion/guidance will be helpful.


回答1:


The most simple explanation is you will need to put your angular files in the www folder, setup your configuration file, make sure the android platform is installed, then run the Android emulate and/or build command to see if it works. That's a very oversimplified version.

Once you've got it working there's a process to go through to prepare the apk to be uploaded to the Google Play Store. You have to be a registered developer for the play store, which is $25/year.

https://scotch.io/@vijayk036/building-hybrid-mobile-apps-using-cordova-and-angularjs-for-android https://thebhwgroup.com/blog/converting-angularjs-website-cordova-app-ios-and-android



来源:https://stackoverflow.com/questions/41781963/how-to-convert-an-existing-angularjs-2-web-app-to-a-cordova-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!