I have a global component on my VM, like this
Vue.component('dropdown', function () {
template: require('./templates/Dropdown.template.html'),
components: {
clients: require('./../modal/Clients.js')
}
});
As you can see this global component has its own child component - clients
In the template of this child component I have click event happening:
<button @click.prevent="submitForm"></button>
Question:
Is it possible that the first global component Dropdown would be responsible for handling this event?
So I would have it like this
Vue.component('dropdown', function () {
...
methods: {
submitForm: function () {
// handling event
}
},
...
});