.  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', [x], [y], [selected]);      }      }  });    new Vue({    el: '#app',    methods: {      mappaCenter: function(x, y, selected){        //alert(x);        console.log(`x: ${x}, y: ${y}, selected: ${selected}`);      }    }  }); <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/0.0.0/vue.min.js"></script>  <div id="app">  <lista-servizi-gialla v-on:centramappa="mappaCenter(arguments[0], arguments[0], arguments[0])"