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);
}
- [Vuejs]-How Show Variable in onchange Method in VueJS?
- [Vuejs]-I Want To Get The Logged In User in my Controller
Source:stackexchange.com