Answer the question
In order to leave comments, you need to log in
How to add an empty array to vue via Vue.set?
Hello! There is such an array this.response.order.ordersItemsInfo[id]
, I use VUE and I want to add another array to this array in ordersItemsInfo[id] and I do it like this:
this.response.order.ordersItemsInfo[id].ordersItemsPropertiesInfo = [];
var object = {
nomenclaturePropertiesId: '',
IditemPropertyArray: '',
Number: null
};
Vue.set(this.response.order.ordersItemsInfo[id].ordersItemsPropertiesInfo, this.response.order.ordersItemsInfo[id].ordersItemsPropertiesInfo.length, object);
this.response.order.ordersItemsInfo[id].ordersItemsPropertiesInfo = [];
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