-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
v-ref is not working with <template> element #681
Comments
It is weird behavior but then you are trying to do something weird by having a <div><div>gfd</div></div>
<div>gfd</div> So for some reason the |
I don't see any problem about using v-component with |
|
Okay, understood. |
I'm not sure if I understand the use case for table/tr/td - can you give an example? |
http://jsfiddle.net/4ty2v4fc/56/
But in the example case I'm forced to keep component |
Why are you using You can do something like <template id="item-template">
<!-- template content -->
</template> childComponent: {
template: '#item-template'
} Or use <template v-el="template">
</template> // access it
this.$$.template |
Nah. Accessing template itself is no the case.
The block has its container - So now I want to mount TopPanel to my page. And there are, actually, two ways:
Here we will get extra wrapper - And the Second one:
Now we've got rid of extra wrapper, but TopPanel container/starting point have got detached from its content. It makes a mess in templates and preventing TopPanel from normal reusing. And using |
I guess you are now using |
Don't know if it's working as planned, but I would like v-ref to work in both cases :)
Also, can't find any references in the docs about the case
http://jsfiddle.net/4ty2v4fc/52/
P.S. Thank for implementing 'wait-for' mechanism. Saved me from a lot of trouble!
The text was updated successfully, but these errors were encountered: