Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
406 views
in Technique[技术] by (71.8m points)

ionic2 - 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.

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.

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 ?

Thanks a lot !

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

I have written a blog for the same at 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...