Angular 2 和 Ionic 用于 Web 和移动应用程序 [英] Angular 2 And Ionic for Web and Mobile App
问题描述
对于我的学校项目,我必须构建一个网络和一个移动应用程序(做大部分相同的事情).我想知道我应该如何继续构建它们.
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 应用程序,因为 ionic 基于 Angular,我可以使用它.
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.
我在另一个帖子中读到,我可以只使用我的 ionic 项目的 www 文件夹并更改 web 应用程序的 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.
现在 ionic 是稳定的,它使用 app-script 进行构建过程,我将通过博客来实现移动和 Web 的构建过程自动化.
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.
如果您觉得有帮助,请告诉我.我将与您分享最新的通用应用程序代码库 repo.
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屋!