Skip to content

docs(render-function#template-refs): Make useTemplateRef the default example#3197

Merged
NataliaTepluhina merged 1 commit intovuejs:mainfrom
sofuxro:docs_render-functions_make_usetemplateref_default_example
Apr 1, 2025
Merged

docs(render-function#template-refs): Make useTemplateRef the default example#3197
NataliaTepluhina merged 1 commit intovuejs:mainfrom
sofuxro:docs_render-functions_make_usetemplateref_default_example

Conversation

@sofuxro
Copy link
Copy Markdown
Contributor

@sofuxro sofuxro commented Mar 15, 2025

Description of Problem

In guide/render-function the Template Refs uses the old way of template ref and only below the new (3.5) useTemplateRef. Everywhere in the docs 3.5 is the default with a fallback Accessing the Refs

Proposed Solution

  • Made useTemplateRef default example
  • Hid the other one in a collapsable pre-3.5 version
  • Fixed an example issue in the useTemplateRef version <div ref="divEl"> -> <div ref="my-div">

Additional Information

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 15, 2025

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 2ecf5c9
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/67d5e1fac9014900085721f4
😎 Deploy Preview https://deploy-preview-3197--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@NataliaTepluhina NataliaTepluhina merged commit b70003e into vuejs:main Apr 1, 2025
1 check passed
@sofuxro sofuxro deleted the docs_render-functions_make_usetemplateref_default_example branch April 4, 2025 12:01
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