[Vuejs]-Concat this with method parameter

0👍

In the function moveItems you are trying to access this.source which is a property of the function’s context, here moveItems function.

In Vue.JS in the context of a method of a component, you have access to the data as properties of this.

Here destination and source are not declared as data of your component but as parameters of your moveItems function.

So if you wanna access to source or “destination` within the context of that function, you should do this :

moveItems: function(destination, source){
       console.log(source);
}

Leave a comment