Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

--mobile flag #108

Closed
maytis opened this issue Oct 10, 2016 · 23 comments
Closed

--mobile flag #108

maytis opened this issue Oct 10, 2016 · 23 comments

Comments

@maytis
Copy link

maytis commented Oct 10, 2016

I'm using the angular-cli: 1.0.0-beta.16. Mobile flag is still disabled. When can we expect the support for mobile flag.

@j0s3v4rg4s
Copy link

+1

@chimon2000
Copy link

chimon2000 commented Oct 13, 2016

As a temporary workaround @maytis, I have found that ng init --mobile works if you've already created the project folder.

@friedger
Copy link

Don't try ng init --mobile
angular/angular-cli#2679

@michaeljota
Copy link

@friedger that issue appears to be fixed and closed. Have not test it.

@friedger
Copy link

friedger commented Oct 20, 2016

@michaeljota The resolution of the issue was that an error is thrown if you use the --mobile flag with init

@michaeljota
Copy link

@friedger Oh! Thanks...

@agalazis
Copy link

still not enabled although the cause was fixed(universal uses 2.0.0 now)

@elekzalan
Copy link

@agalazis Moreover, universal supports aot compilation since it's 2.1.0-rc.1 release. The --mobile flag is a must-have for a bunch of projects...

@born2net
Copy link

its broken due to the fact universal is being added with modules.
however, I really don't like universal, I wish we could have an AOT version of this project (no universal)

@webmaxru webmaxru mentioned this issue Nov 13, 2016
@iansim
Copy link

iansim commented Nov 17, 2016

without --mobile does angular worth to learn?

@worldspawn
Copy link

Checked on this mobile stuff like a year ago and it had a great bug (something to do with universal) that produced blank templates or a template with the word "null" in it. A year later and now its just disabled, effectively disabling this entire project?!? Ng eco-system feels like an endless chore of beta-never-gets-released-ware. I know, i know, its open source free ware but shit, i'm going to whinge anyway :P

@webmaxru
Copy link
Member

CLI and --mobile are just helpers. You can use Mobile Toolkit separately: #115 (comment)

@PatrickJS
Copy link
Member

here's a repo with module packages https://github.com/webmaxru/pwa-guide-ngpoland/tree/step-dashboard

@sebastianovide
Copy link

i've just started a PWA with angular2. In the https://angular.io/ there is a big invitation to try @angular/material. https://material.angular.io/guide/getting-started instructs to use angular-cli but https://github.com/angular/angular-cli has disabled --mobile. Also https://mobile.angular.io/ indicates to use angular-cli.

The previous link is a nice demo done by @gdi2290 (thanks) but as it is not using the tools suggested by the official documentation, using it as a starting point seems risky. Where are we going to get support from ?

mobile-toolkit seems very quiet (https://github.com/angular/mobile-toolkit/pulse/monthly) and angular-cli position about --mobile is not clear angular/angular-cli#2228

So starting today a new PWA using angular2 seems very painful as there is not official working documentation on how to do it.

Should we hold before using angular2 for PWA ?

@hansl
Copy link

hansl commented Jan 9, 2017

@alxhub It would be nice to remove any mention of the cli and --mobile from the microsite. I think this issue can be either replaced by a new issue for removing the tutorial, or considered for tracking removing the tutorial.

@CharlBest
Copy link

@sebastianovide

Should we hold before using angular2 for PWA ?

I'm still wondering if we should wait on creating pwa with Angular?

@friedger
Copy link

@Charlkie14 Definitively, build PWAs with Angular, this should not depend on the tools!

@CharlBest
Copy link

Yes your right @friedger. :) I'm trying it out now.

@sebastianovide
Copy link

@Charlkie14 I'm using angular for PWA. Check out ionic2.

@cre8
Copy link

cre8 commented Feb 7, 2017

@Charlkie14 ionic2 is similar to PWAs, but it's not the same. Ionic is building an app for the smartphones, PWAs don't need to be packed up to work on different mobile platforms.

@sebastianovide
Copy link

@cre8. Actually I'm building a PWA with Ionic2. Pure PWA with service woker without Phonegap. In us part of ionic2 out of the box.

@jakeNiemiec
Copy link

@sebastianovide very good to know. Can ionic2 do AoT now?

@mgechev
Copy link
Member

mgechev commented Mar 15, 2017

I believe we can close this issue. Here's the PR by @alxhub angular/angular-cli@cb2e418 to the CLI.

@mgechev mgechev closed this as completed Mar 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests