I'm having an issue where I am unable to access this.active
in my method delete
. What could be causing this problem?
data () {
return {
ride: { user: {}, location: {}, type: {} },
active: false
}
},
methods: {
delete ()
{
this.active = true;
}
}
Even though clicking on the delete button triggers the function, Vue dev tools
show that active remains false. Any insights into this behavior?