DEV Community

Kai Oswald
Kai Oswald

Posted on

2

Tell me about your custom vue directives!

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!

Top comments (2)

Collapse
 
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.

Collapse
 
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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay