[Vuejs]-Nuxt.js: Iterating in method causes problems

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);
            }
        }

Leave a comment