[Vuejs]-Error compiling template:Vuejs

0👍

The error is due to an incorrect v-on expression.

The v-on expression should look similar to the following:

v-on:click="addEvent"

Where addEvent is the name of the function to be called when the component is clicked. For related examples see Vue.js Event Handling.

Leave a comment