I have a component with a specific set of starting data:
data: function (){ return { modalBodyDisplay: \'getUserInput\', // possible values: \'ge
Caution, Object.assign(this.$data, this.$options.data()) does not bind the context into data().
Object.assign(this.$data, this.$options.data())
So use this:
Object.assign(this.$data, this.$options.data.apply(this))
cc this answer was originally here