-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Template refs (Options API) #117
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
Conversation
Co-authored-by: Phan An <me@phanan.net>
src/guide/component-template-refs.md
Outdated
to access the `<base-input>` instance. This may be useful when you want to, for example, programmatically set focus on this input from a parent. In that case, the `<base-input>` component may similarly use a `ref` to provide access to specific elements inside it, such as: | ||
|
||
```html | ||
<input ref="input"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel the focus example is more natural (and simpler). Shouldn't we introduce it first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@znck nice idea! I changed the description to move the most complex part towards the end of the guide
Commitor: initdc
This PR adds a section regarding using template refs in the Options API.
Close #74