force vue component to reset everything code example Example: vuejs reset component Object.assign(this.$data, this.$options.data())