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 `