How to modify component's class in directive
-
If I have the following component defined:
<q-input v-my-directive class="existing-class" />
How can I add or modify the class in that component using the
v-my-directive
directive? -
Why with a directive? You can make the class dynamic by binding it.
https://vuejs.org/v2/guide/class-and-style.html
Scott