You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Vue 2.x, application root container's outerHTML is replaced with root component template (or eventually compiled to a template, if root component has no template/render option). Vue 3.x now uses application container's innerHTML instead - this means the container itself is no longer considered part of the template.
Perhaps that should get a page to itself and be less focused on the template aspect of the change?
It should probably be mentioned more explicitly in the API Reference for mount:
The API reference for template also needs updating. It claims the element is 'replaced', which is no longer true. Given a template option can be used on any component, not just the root component, it probably shouldn't focus quite so heavily on that aspect anyway:
I'm Vue 2, the element we mount to is replaced. In Vue 3, because we now have Fragements, we mount the app as a child of the mount element.
We don't really document this clearly, at least I couldn't find anything by skimming migration guide and api docs.
The text was updated successfully, but these errors were encountered: