Can I rely on this
used inside data factory function as it was current component object instance? I couldn't find in docs what this
is in data()
.
data() {
return {
results: [],
apiResource: this.$resource('url...'), // <-- this used here
loading: true,
}
},
Simple test shows that this
is VueComponent
instance here, but the question is if the framework allows using it this way.