将Angular 2应用变成移动应用 [英] Turn Angular 2 app into mobile app

查看:71
本文介绍了将Angular 2应用变成移动应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个使用AngularJS 2开发的响应式Web应用程序.我们希望将其包装在一个包中,以将其重新分发为移动应用程序. Android是我们的首要任务.我们看了科尔多瓦.还有其他选项可用于将Web应用程序转换为移动应用程序吗?将AngularJS 2 Web应用程序转换为移动应用程序会遇到哪些陷阱?

We have a responsive web app developed using AngularJS 2. We would like to wrap it inside a package to redistribute it as a mobile app. Android is our priority. We have looked at Cordova. Are there other options available for turning a web app into a mobile app? What are the pitfalls involved in turning an AngularJS 2 web app into a mobile app?

推荐答案

Ionic 2 (目前处于测试版)使用Angular2开发混合移动应用程序.您必须在应用程序中进行一些修改,但仍然是Angular2,只有一些自定义离子组件.

Ionic 2, currently in beta, uses Angular2 to make hybrid mobile apps. You'll have to make some modifications in your app but it's still Angular2, only with some custom ionic components.

NativeScript 也使用Angular2制作应用程序,但这一次,它制作了真正的本机应用程序.还有很多工作要做,您必须调整模板和样式,但是代码仍然是Angular2风格的TypeScript.

NativeScript also uses Angular2 to make apps, but this time, it makes true native apps. There's a little bit more of work there, you'll have to adapt your templates and styles but the code is still Angular2-flavored TypeScript.

这篇关于将Angular 2应用变成移动应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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