I have data stored in my VueJS component as a list, and it is rendered to the DOM using a v-for loop that iterates through each item in the array. I have a button that removes an item from the array, and now I am working on making the add button add back one item at a time if that item is not already in the array.
addItem: function(){
for (item in this.array){
if (item !== item){
this.array.push(item)
}else{
continue
}
}
},