-
Notifications
You must be signed in to change notification settings - Fork 248
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
How to use vue-meta with ssr? #114
Comments
I found a solution. if anyone interested just add {{{ meta.inject().title.text() }}} and other meta props in template.html |
This works, however, the Vue SSR docs discourage the usage of
https://ssr.vuejs.org/en/head.html (See "Notes" at the bottom) |
I know this, but for now i don't know how to inject it to html. double mustaches just output it as text.. |
Is there an alternative approach than using |
@Atinux @declandewet ping |
@Atinux - any update on @newenegue's previous comment? |
Actually, Example: $meta().inject().title.text() => |
Oh, perfect. Should we update this in doc? |
A PR would be awesome :) |
Is there any way to use it with createBundleRenderer ? this function outputs the ssr bundle with html and then i'm using this html in .renderToString() function.
So when i'm adding ${meta.text()} to the res.send() my rendered html file becoming weird and not semantic. I mean meta tags are not in < head> and etc.
Thanks.
The text was updated successfully, but these errors were encountered: