Skip to content

Commit 998a71e

Browse files
docs: explain $el for fragments (#606)
1 parent d6f98be commit 998a71e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/api/instance-properties.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
The root DOM element that the component instance is managing.
3030

31+
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`.
32+
3133
## $options
3234

3335
- **Type:** `Object`

0 commit comments

Comments
 (0)