diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index ec7daf4cca..8abb17e461 100644 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -194,6 +194,7 @@ const sidebar = { '/guide/migration/key-attribute', '/guide/migration/keycode-modifiers', '/guide/migration/listeners-removed', + '/guide/migration/mount-changes', '/guide/migration/props-data', '/guide/migration/props-default-this', '/guide/migration/render-function-api', diff --git a/src/.vuepress/public/images/lifecycle.svg b/src/.vuepress/public/images/lifecycle.svg index 287e1303e5..e476cb08d8 100644 --- a/src/.vuepress/public/images/lifecycle.svg +++ b/src/.vuepress/public/images/lifecycle.svg @@ -128,7 +128,7 @@ - Create app.$el and replace “el” with it + Create app.$el and append it to el @@ -144,4 +144,4 @@ - \ No newline at end of file + diff --git a/src/api/application-api.md b/src/api/application-api.md index 4571262091..cc37f188cc 100644 --- a/src/api/application-api.md +++ b/src/api/application-api.md @@ -191,7 +191,7 @@ Apart from `el`, you should treat these arguments as read-only and never modify - **Usage:** - Mounts a root component of the application instance on the provided DOM element. + The `innerHTML` of the provided DOM element will be replaced with the rendered template of the application root component. - **Example:** diff --git a/src/api/options-dom.md b/src/api/options-dom.md index f11407afaf..c6eb43856d 100644 --- a/src/api/options-dom.md +++ b/src/api/options-dom.md @@ -6,7 +6,7 @@ - **Details:** - A string template to be used as the markup for the component instance. The template will **replace** the mounted element. Any existing markup inside the mounted element will be ignored, unless content distribution slots are present in the template. + A string template to be used as the markup for the component instance. The template will **replace** the `innerHTML` of mounted element. Any existing markup inside the mounted element will be ignored, unless content distribution slots are present in the template. If the string starts with `#` it will be used as a `querySelector` and use the selected element's innerHTML as the template string. This allows the use of the common `