Answer the question
In order to leave comments, you need to log in
Nuxt.js (Vue.js based) how to get the class of the element that called the function?
Nuxt.js how to get the class of the element that called the function?
I need to get the class of the element that calls the function:
<h1 class="title" v-bind:class="{ 'active': isVisible()}">
isVisible (className) {
console.log(className)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question