We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using setup(), it would seems more natural to bind the ref property to the template ref attribute.
Bonus: Allows Ctrl/Cmd Click "Go to declaration" in IDE's :)
<template> <h1 :ref="titleEl">Here is my title</h1> </template> <script> export default { setup() { const titleEl = ref(); return { titleEl }; } } </script>
The text was updated successfully, but these errors were encountered:
When using <h1 ref="titleEl">, it gives us the sensation of returning an unused property from setup().
<h1 ref="titleEl">
setup()
Sorry, something went wrong.
This was discussed over at vuejs/rfcs#78 on the Template refs section. Having a string also allows dynamic refs.
No branches or pull requests
What problem does this feature solve?
When using setup(), it would seems more natural to bind the ref property to the template ref attribute.
Bonus: Allows Ctrl/Cmd Click "Go to declaration" in IDE's :)
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: