From d9dbcf2731500e201d6eb5a5c0cd186f66305e82 Mon Sep 17 00:00:00 2001 From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Mon, 21 Feb 2022 10:46:46 +0000 Subject: [PATCH] Update the API entry for the template option (#1570) --- src/api/options-rendering.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/options-rendering.md b/src/api/options-rendering.md index 4eeff8a5b..5ab41430d 100644 --- a/src/api/options-rendering.md +++ b/src/api/options-rendering.md @@ -2,7 +2,7 @@ ## template -A string template for the component instance. +A string template for the component. - **Type** @@ -14,13 +14,13 @@ A string template for the component instance. - **Details** - Template provided via the `template` option will be compiled on-the-fly, therefore it is only supported when using the full build (i.e. the standalone `vue.js` that can compile templates in the browser). - - The template will **replace** the `innerHTML` of mounted element. Any existing markup inside the mounted element will be ignored. + A template provided via the `template` option will be compiled on-the-fly at runtime. It is only supported when using a full build of Vue that includes the template compiler. The builds that include the template compiler have the word `runtime` in their names, e.g. `vue.runtime.esm-bundler.js`. Consult the [dist file guide](https://github.com/vuejs/core/tree/main/packages/vue#which-dist-file-to-use) for more details about the different builds. 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 source template to be authored using native `