i'm trying to change the text-color when a component is active
here's my template
<div
v-if="enabled2FAs.includes('phoneOtp')"
@click="otpType = 'phoneOtp'"
>
<div
:class="[isActive ? activeClass: 'red',]">
Phone OTP
</div>
</div>
<div
v-if="enabled2FAs.includes('authenticatorApp')"
@click="otpType = 'authenticatorApp'"
>
<div
:class="[isActive ? activeClass: 'red',]">
Phone OTP
</div>
</div>
my sxript tag
<script>
export default {
data() {
return {
isActive: true,
};
},
};
</script>
pleaase how can i go about this
Via Active questions tagged javascript - Stack Overflow https://ift.tt/8E9s0g2
Comments
Post a Comment