 See demo below.  Vue.component('lista-servizi-gialla', {    template: `  <span class="pull-right forward"   v-on:click="centraNellaMappa(0, 0, true)">  test   </span>    `,    methods:{      centraNellaMappa : function(x, y, selected) {        this.$emit('centramappa', 