Access vue variables from slot data

Posted 3 months ago by Roni

Is there a way to access/update Vue data variable from inside a named slot? Right now I have a vue component working with blade partials in slots, and it would be so convenient if I could have a button that has to be inside the slot, update one of the reactive data variables. Is there a way to emit an event that vue would be listening for from vanilla javascript?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.