You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make a custom list component using a scoped slot like the one in the docs, and I would like to expose all of the item properties as props to the template. Unfortunately, the v-bind="obj" syntax doesn't seem to be working for me in a scoped slot. Is this deliberate?
Regular v-bind:prop="obj.prop" syntax is working correctly, but it would be great if I could expose everything at once.
I don't believe I'm making a mistake, but sincere apologies if I am, or if this has been mentioned somewhere else that I missed.
Here's what I did, I have an array of object instances of a specific class. That class has public functions in it and I need to invoke those functions on the template. It just seems the v-bind converts the passed value to a standard object. Is there any way I can invoke those class functions in there? Cheers.
I'm trying to make a custom list component using a scoped slot like the one in the docs, and I would like to expose all of the item properties as props to the template. Unfortunately, the
v-bind="obj"
syntax doesn't seem to be working for me in a scoped slot. Is this deliberate?Regular
v-bind:prop="obj.prop"
syntax is working correctly, but it would be great if I could expose everything at once.I don't believe I'm making a mistake, but sincere apologies if I am, or if this has been mentioned somewhere else that I missed.
Thank you!
Entry point:
CustomList with implicit v-bind object binding:
Result:
CustomList with explicit prop binding:
Result:
The text was updated successfully, but these errors were encountered: