DEV Community


Tell me about your custom vue directives!

Kai Oswald
.NET Core + Vue.js = 🔥
・1 min read

I didn't find a useful case where I needed a custom vue directive in my side-projects yet, but maybe you did. Tell me about it!

Discussion (2)

laurencejjones profile image
Laurence Jones

Change the colour of a div depending on which dropdown you select. We used this for an internal Pallete system for websites rather than us trying to remember the hex value we stored it on the site and changed the background colour for a preview.

afifsohaili profile image
Afif Sohaili

I didnt have to use any directives (not even built-in ones), but again, my project may not be big enough.