Under certain conditions I want to reinitialize a component's data to what it started with. As a start, instead of having the properties specified within the data(), I call a function which returns a data object, thus:
data() {
return this.initialData();
},
How can I call this again in, say, $watch? Can I actually directly write to the data object?