[Vuejs]-V-show does not work as I expected in my code

0👍

You should access your array by the given index which is passed as parameter as follows:

  sharePopup(lesson, index){
            this.lessons[index].isShare = !lesson.isShare;
           this.$set(this.lessons,index, this.lessons[index])

        }

learn more about $set function here

Leave a comment