Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

to show which tab is active in VueJS

<li v-for="(tab, index) in tabs" @click="currentTab = index" :class="{active: currentTab === index}">{{tab}}</li>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #tab #active #VueJS
ADD COMMENT
Topic
Name
1+4 =