Skip to content

Explain $el for fragments #606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

skirtles-code
Copy link
Contributor

Description of Problem

The API reference entry for $el doesn't acknowledge fragments.

Proposed Solution

Added an explanation for fragments.

Something similar happens for components that don't render anything due to a root-level v-if. I originally intended to mention that too but it just made it harder to understand.

Additional Information

The recommendation to use template refs is taken from this RFC:

https://github.com/vuejs/rfcs/blob/master/active-rfcs/0009-global-api-change.md#mounting-behavior-difference-from-2x

@NataliaTepluhina NataliaTepluhina merged commit 998a71e into vuejs:master Oct 7, 2020
nick-lai pushed a commit to nick-lai/docs-next that referenced this pull request Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants