I am trying to handle variable change with watch. I have got following code:
var userContent = Vue.extend({
template: `
// ...
`,
data: function () {
retu {
rasters_previews_list: []
}
},
ready: function()
{
},
methods:
{
},
watch('rasters_previews_list', function(value, mutation) {
console.log("Value changed");
});
});
On it I am getting error: SyntaxError: Unexpected string
What I am doing wrong?
