T
T
tyoma_koder2021-07-07 19:08:47
Vue.js
tyoma_koder, 2021-07-07 19:08:47

Where does the value of the VUE variable come from?

I can’t understand where the value of the tab variable comes from here

<button v-for="tab in tabs" v-bind:class="['tab-button', { active: currentTab === tab }]" v-on:click="currentTab = tab">

https://jsfiddle.net/morskaya_ulitochka/y3jaLe9d/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2021-07-07
@tyoma_koder

from v-for=" tab in tabs"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question