Skip to content
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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sofuxro
Copy link

@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

Copy link

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.

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.

1 participant