InaniELHoussain
3 years ago
315
10
Vue

Unexpected token : when using component in vue

Posted 3 years ago by InaniELHoussain

I'm using Laravel with Vue js, but when I try to use Vue.compenent I get the Uncaught SyntaxError: Unexpected token :

Vue.component('tasks', function(){ template: '#tasks-template',

props: ['list'],

created(){ this.list = JSON.parse(this.list); } });

and Thank you in Advance.

Please sign in or create an account to participate in this conversation.