-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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
If template
option is an actual template node, auto use its content
.
#335
Labels
Comments
@yyx990803 Can you give an example in how it should behave? AFAIU this will remove the need to do things like: Vue.extend({
template: $('#my-thing-template').text()
}); Am I right? |
Well, currently the template option accepts three things:
So you can already do: Vue.extend({
template: '#my-thing-template'
}) This fix is intended to make this possible: Vue.extend({
template: document.querySelector('template') // a <script> or <template> node
}) As for your example, it removes the need to call the extra |
This was referenced Feb 20, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: