-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port mobile template to NG2 #5
Comments
Would you expect to see the separation between the mobile templates and the web templates at the Considering that ionic has its own router system, it would be complicated to share the same app folder also if we start to mix different HTML template part of the solution. Having a My only concern will be sharing some
I would only share some of the Is that something that could work for you? |
I think the best way is to share the maximum possible code between web & mobile app, you can take a look at this generator for angular 1 to see how we've done it, but basically:
A more complete doc about template is coming, as part of #33 😉 The Ionic-specific router is going an issue though 😞 Ionic v1 used To get started, I think we need to split the job into different tasks to avoid working on the same thing. EDIT: tasks moved to the first post Once we agree on the tasks, I'll create the separate issues |
I created the feature branch with the generator questions and some of the ground work (dependencies, cordova It's not fully functionnal at this point (it builds but the cordova app does not work at the moment). @R0muald If it's ok for you I'll create the issues for the tasks listed above, so anyone can just reply or assign himself to the tasks. |
OK sure, thanks. |
Everything is ready, anyone who wants to contribute, just assign the issue you want to work on to yourself so we can follow who's working on what on the project page. 😸 |
Hey, I'm finally spending some time on the mobile app! |
I looked at this problematic some time ago, and it seems there's no straightforward solution in Ionic 2+: for the moment it seems the best way would be to use Ionic navigation and deep linker systems in replacement of the There's not much info on the subject, but it seems the Ionic team has completely abandoned the idea of integrating with |
I've been playing with the new ionic 3 |
Just for the record, I made a post on their forum since I found that they're more and more drifting away from (Angular) best practices over time: https://forum.ionicframework.com/t/default-ionic-structure-is-bad-for-large-projects/95938 @R0muald Yes it will be a challenge unlike with Ionic v1 (!), but from what I've seen it does not seems tightly related to the folder structure, but rather an arguably "best" practice from the Ionic team. I'll try to play a bit with it... |
After a lot of struggle, here is what I found during extensive comparison between Missing in ionic CLI:
Missing in Angular CLI:
Due to the tight integration (among other issues) of @R0muald do you have any thoughts on this? EDIT: quick POC done, and the first result is that it seems possible to bind angular-router navigation to ionic navigation, and that's good news I think :) |
For anyone interested, this is where I'm working on for the mobile branch: https://github.com/ngx-rocket/starter-kit/tree/mobile/ionic-routing With a few lines of plumbering, Ionic navigation is easily tied to Angular router, and this allows to use the exact same principles as the web version, without the pitfalls of I'm currently working on authentication page, and unit/e2e tests will come after. Once it's stable enough, I will migrate the code to the generator. Any feedback appreciated 😄 |
This is definitively a great start! |
@R0muald what would you want to see in As for the mobile branch, it's nearly complete now, all that's remaining is the service worker support but I'm thinking of doing it in a second stage, as it's not really mobile-specific and could also apply to the Bootstrap version. For the mobile-specific tooling, I have created a new repo: https://github.com/ngx-rocket/scripts Also as a side note @R0muald, someone will start working a "responsive tabs" version of the ionic mobile shell, instead of the side-menu: bottoms tabs will be used in "smartphone" breakpoints, and tabs will move vertical on the left side when the app is in larger breakpoints, like this: What do you think? |
While discussing possible improvements to the mobile/cordova branch, I have applied all the changes (and fixed a lot by the way 😉 ) to the generator, so everything is close to be ready for a new release with a HUGE changelog! 🎉 The only task remaining here concerns the PWA/Service worker support, but since does not concern directly the mobile (hybrid) branch, I will keep it for a later update. |
In a separate branch, port SK mobile template to Angular 2, using Ionic v2 instead of Bootstrap v4/Font Awesome.
Warning: the build system should still be using angular-cli, not the ionic-cli. The project template/structure should be compatible with the web template (as it should be interchangeable later).
Here are the list of tasks I have in mind, feel free to suggest changes:
cordova-plugin-globalization
angular-cli
),prepare
,build
,run
... with Android + iOS supportcordova-plugin-splashscreen
,cordova-plugin-device
,cordova-plugin-whitelist
etcAdd service worker/PWA support=> will be in a separate update/issueThe text was updated successfully, but these errors were encountered: