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

Support Rendering Server Side? #6

Open
maxiar opened this issue Sep 1, 2016 · 11 comments
Open

Support Rendering Server Side? #6

maxiar opened this issue Sep 1, 2016 · 11 comments

Comments

@maxiar
Copy link

maxiar commented Sep 1, 2016

Is this component support Rendering Server Side by Angular Universal?

@scott-wyatt
Copy link

It doesn't, though that would be supper cool! The issue with it using universal is that the backend doesn't have the ability to modify the head yet. The Universal guys are working on that though, in the mean time you can use the Renderer from @angular/core to make changes to the DOM before serving the file.

@amauryprieto
Copy link

amauryprieto commented Oct 25, 2016

@scott-wyatt would you mind sharing and example of how to use the Renderer to modify meta tags?

@scott-wyatt
Copy link

Like all things angular, that part of angular has changed again lol. The universal guys are working on a Meta Service to allow for this server side.

@mklemme
Copy link

mklemme commented Oct 31, 2016

It looks like something is underway for this: angular/angular#12322

@PickRelated
Copy link

Looks like we will have angular metatags built-in, but no sooner than 2.3.0 beta release.
Nevertheless, I wonder if this wonderful module is going to get server side rendering support.
@vinaygopinath, any thoughts on this?

@vinaygopinath
Copy link
Owner

I'd like to make ng2-meta compatible with server-side rendering. I've been following the activity on the angular/universal thread, and it looks like using DomAdapter instead of plain old document while creating/updating meta elements would be the key change.

Does anyone want to take a crack at it?

@kodeine
Copy link

kodeine commented Nov 20, 2016

@vinaygopinath yes i guess lets use DomAdapter.

@kodeine
Copy link

kodeine commented Nov 25, 2016

@vinaygopinath any updates on this?

@dukang
Copy link

dukang commented Dec 18, 2016

hey guys, any update?

@nicky-lenaers
Copy link

Any updates? I'd really like to see this working!

@yaroslavOshyyko
Copy link

yaroslavOshyyko commented Feb 19, 2017

Angular Universal Starter has angular2-meta service that helps modify head tag in server side. This service will be added to @angular/platform-browser in Angular 4.0.

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

10 participants