Stuart Ashworth - Developer, Consultant & Trainer · Sep 28, 2020
Adding Extra Parameters to Vue.js Event Handlers
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
We all know how to add a listener to an event coming out of a Vue.js component, right? < my-toolbar @action-clicked = " onActionClicked " /> Dead easy. This will execute the onActionClicked method when the action-clicked event is emitted from the my-toolbar component. The onActionClicked method will receive the parameters passed from the $emit call within the component. For example, the $emit…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.