Having a component like so:
import { someData } from 'someData.js'
export default {
data() {
return {
foo: 'bar',
someData: someData
}
}
}
someData.js :
export const someData = {
someObject: {
test: this.foo // How can I access foo from the component, where this object is imported from? This is not accessable.
},
}
How can I access this.foo in someData.js ?