Skip to content
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

Add Universal support #2

Open
mrjmd opened this issue Jun 15, 2017 · 8 comments
Open

Add Universal support #2

mrjmd opened this issue Jun 15, 2017 · 8 comments

Comments

@mrjmd
Copy link
Member

mrjmd commented Jun 15, 2017

https://medium.com/@evertonrobertoauler/angular-4-universal-app-with-angular-cli-db8b53bba07d

@mrjmd
Copy link
Member Author

mrjmd commented Jul 9, 2017

Just for anyone who stumbles across this issue, this is still on our roadmap but is probably not going to land any time soon. Upon further research the method in the Medium article above is not really the best approach, and you end up not having some of the best features of both the CLI and Universal with that approach.

The Angular team is still working on adding Universal support to the CLI, but it sounds like it's a relatively high-effort task that may take a while. In the meantime, our best option may be to have a Universal branch of this project where we ng eject from the CLI and then customize our webpack config manually.

@joaogarin
Copy link
Member

I agree with having a universal branch on the repo. but its something we can do once we feel the app is sort of ready for use. I think it can be accomplished easily so no point really in creating in now and having to do some maybe hard rebases to keep it in sync while we actively change the solution drastically..But definitely want to point out the is a super priority issue for us.

@mrjmd
Copy link
Member Author

mrjmd commented Jul 19, 2017

There is some progress being made on CLI integration, an early (alpha / experimental / branch) version of it may land as soon as next week in time for the talk about Angular on the Server at next week's Node Summit.

@joaogarin
Copy link
Member

thats great news ! 🎉

@mrjmd
Copy link
Member Author

mrjmd commented Jul 21, 2017

Experimental CLI / Universal support has landed: https://twitter.com/hanslatwork/status/888527770925506560

@mrjmd
Copy link
Member Author

mrjmd commented Jul 25, 2017

Big news on this one, some new documentation and a new post on Medium have opened the possibilities up here.

We've got a work in progress branch / PR at #73.

@mrjmd
Copy link
Member Author

mrjmd commented Jul 26, 2017

I think our blocker soon is going to be hosting. I've done a little bit of digging into how Universal would work on Firebase, and there is some possibility of using Cloud Functions, but I haven't found any good guides.

@mrjmd
Copy link
Member Author

mrjmd commented Jul 26, 2017

Next update re: cloud functions, here's an example using Universal with Firebase Cloud Functions:

https://github.com/StephenFluin/angular-on-the-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants