如何将现有的AngularJS 2 Web应用程序转换为Cordova应用程序? [英] How to convert an existing AngularJS 2 web app to a Cordova app?

查看:265
本文介绍了如何将现有的AngularJS 2 Web应用程序转换为Cordova应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Angularjs 2.0构建的webapp,我想将其转换为android apk并安装在Android手机上并测试。

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.

我没有任何建立移动本机应用程序或将webapp转换为本机应用程序的经验。

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

我已经完成了如何将现有的AngularJS Web应用程序转换为Cordova应用程序?
任何建议/指导都会有所帮助。

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

推荐答案

最简单的解释是你需要放置你的角度文件在www文件夹中,设置配置文件,确保安装了android平台,然后运行Android模拟和/或构建命令以查看它是否有效。这是一个非常简单的版本。

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.

一旦你有了它的工作,就有一个过程来准备将apk上传到谷歌Play商店。你必须是这家游戏商店的注册开发商,每年25美元。

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

这篇关于如何将现有的AngularJS 2 Web应用程序转换为Cordova应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆