#Web and Mobile code sharing

6 messages · Page 1 of 1 (latest)

indigo breach
#

Hey, we have an angular app and we decided to develop mobile version of it. But I don't have any idea what are the best practices for code sharing between mobile and desktop (our mobile app is not responsive and it's a separate app). should we migrate to nx? or we can extract the app logic in some kine of re-usable library in angular workspace?
thanks a lot for your helps

tawny basin
#
  • you can make a hybrid mobile version with ionic / angular if you need to use the camera, the calendar of the smarthphone etc...

  • make a PWA (which I recommend) if you don't need to use the camera, the calendar of the smarthphone etc...

indigo breach
#

thank you
and what about the code share?

tawny basin
#

that is to say ? code share?
PWA or ionic/angular is angular

indigo breach
#

I think I'll go with angular/ionic and make two separate projects: app-web and app-mobile
and because I wrote web app already, I'm thinking about using web app services and logic inside my mobile app

#

is it ok to make a library like app-logic to hold the shared states and services between two apps?