Answer the question
In order to leave comments, you need to log in
Why doesn't Vue work after removing an element?
Just started trying vue. There is a problem - I can not understand why it stops working after deleting and inserting a new element.
Those. suppose I somehow initialize vue like this:
var option = {
data: config.data,
methods: {
update: function (data) {
for (var d in data) {
this[d] = data[d];
}
},
}
};
var $tmpl = $('#'+id+'_tmpl');
option.template = '#'+id+'_tmpl';
widget.vue = new Vue(option);
// монтируем элементы
widget.vue.$mount('#'+id);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question