From 8ea7b493ab1af206861ba3b0c1caa1a4ac2f73cf Mon Sep 17 00:00:00 2001 From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Wed, 7 Oct 2020 04:51:14 +0100 Subject: [PATCH] docs: explain $el for fragments --- src/api/instance-properties.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/instance-properties.md b/src/api/instance-properties.md index 83f786bd8c..a44b0d58de 100644 --- a/src/api/instance-properties.md +++ b/src/api/instance-properties.md @@ -28,6 +28,8 @@ The root DOM element that the component instance is managing. + For components using [fragments](../guide/migration/fragments), `$el` will be the placeholder DOM node that Vue uses to keep track of the component's position in the DOM. It is recommended to use [template refs](../guide/component-template-refs.html) for direct access to DOM elements instead of relying on `$el`. + ## $options - **Type:** `Object`