Angular 2和Ionic适用于Web和移动应用程序 [英] Angular 2 And Ionic for Web and Mobile App

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

问题描述

对于我的学校项目,我必须建立一个网络和一个移动应用程序(做大部分相同的事情)。而且我想知道我应该如何继续构建它们。

For my school project i have to build a web and a mobile app (doing mostly the same things). And i'm wondering how i should proceed to build them.

我将使用Ionic 2作为我的移动应用程序并且正在考虑将Angular 2用于我的Web App因为离子是基于角度我可以使用它。

I'm going to use Ionic 2 for my mobile App and was thinking about Angular 2 for my Web App since ionic is based on angular i could use it.

我在另一个线程中读到我可以只取我的离子项目的www文件夹并更改css网络应用。

I've read in another thread that i could just take the www folder of my ionic project and change the css for the web app.

我的问题是先开始使用哪一个,先创建移动应用或首先创建网络应用?或者使用另一种可能更容易的解决方案并节省一些时间重新编码相同的东西?

My question is with which one to begin, create the mobile app first or the web app first ? Or use another solution who could be easier and save me some time re-coding the same things ?

非常感谢!

推荐答案

差不多一年后我遇到了类似的情况,我为通用代码共享创建了通用应用程序(移动+ Web)概念。

I got in a similar situation almost one year back and I created universal app (Mobile + Web) concept for common code sharing.

我在 https://walkingtree.tech/index.php/getting-started-with-universal-web-mobile-application-in-angular-2

现在离子是稳定的,它使用应用程序脚本进行构建过程,我即将通过博客来自动化移动和网络的构建过程。

Now ionic is stable and it uses app-script for build process which I'm about to come through the blog where I have automated the build process for mobile and web.

如果您觉得有帮助,请告诉我。我将与您分享最新的通用应用程序代码库回购。

Do let me know if you find it helpful. I will share latest Universal app code base repo with you.

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

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