Emit event with parameters in vue
The following argument(s) in $emit() are the arguments in your emitted function. $emit(‘select-menu-item’, $event, 1, 2, 3, 4, “cupcakes”) and in your component method. selectMenuItem: function(evt, num1, num2, num3, num4, food){ } And in your actual component markup, you don’t need to add arguments, just write the reference to the method without parenthesis. <search-component v-bind=”searchProps” … Read more