Skip to content

Demo of attempting to use vue teleport to render into the html head

Notifications You must be signed in to change notification settings

bcdanieldickison/vue-ssr-to-head

Repository files navigation

Vue SSR to <head>

Testing server-side rendering into the <head> of the document using <Teleport to='head'>. Alas this doesn’t work well at the moment because Vue, when hydrating, expects Teleport contents to match exactly the innerHtml of the target element. This results in duplicate content ending up in the head.

To start:

npm install
npm run server

open http://localhost:3001

About

Demo of attempting to use vue teleport to render into the html head

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published