[Vuejs]-Vue JS computed property and jquery

0๐Ÿ‘

โœ…

I assume the bootstrap tap is active with a click, otherwise correct me, and Iโ€™ll come back with another answer.

// Simulate tab
<tab @click="toggleTabState"></tab>

// Simulate bootstrap element to show
<div v-if="tabIsOpen"></div>

export default {
  data() {
    return {
      tabIsOpen: false
    }
  },

  methods: {
    toggleTabState() {
      this.tabIsOpen = !this.tabIsOpen
    }
  }
}

Gonna need some of your HTML to see what else is going on. Are you iterating through a lot of elements with a v-for?

Leave a comment