showing results for - "re init data vue js"
Nohan
06 Jun 2018
1export default {
2    data () {
3        return {
4            h2: 0,
5            // other attributes...
6        };
7    },
8    methods: {
9        resetFields () {
10            Object.assign(this.$data, this.$options.data.call(this));
11        }
12    }
13}