2👍
Change questionAmount
to i
in Vue.set
call in showAll
method:
showAll: function(questionAmount) {
for (let i = 0; i < questionAmount; i++) {
this.$set(this.visibleQuestions, i, true);
}
}
- [Vuejs]-How to share a method between two components in Vue.js?
- [Vuejs]-How to share a method between two components in Vue.js?
Source:stackexchange.com