[Vuejs]-How can I toggle elements with dynamically created models using v-if?

0๐Ÿ‘

โœ…

You need to use Vue.set(member, key, value). The index operator will not be reactive.

Vue.set(ctx.maxMatches, response[i]['match_id'], false)

0๐Ÿ‘

Use the v-show attribute on whatever element you want to toggle and data bind it to a variable which will toggle the element.

Leave a comment