Is there a manner to access a vue option api.
assume the below code.
import {visualization} from "../util/Visualization"
export default {
data:() =>({
foo = ''
})
}
}
is there a way to access ‘foo’ within the function visualization defined within ‘visualization.js’ , foo is also bound with <textarea v-model=”foo” /> so basically modify the value of template element from an js method.
have searched extensively have a working example , from all i have tried , the only way i could do this is to access the element with getElementById , but this directly set the element bypassing the variables which breaks functionality.