Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upv-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!