خرید بک لینک

Vote count: 0

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?

asked 45 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 13 مرداد 1395 ساعت: 15:47

صفحه بندی