-
Reuse Vue component in a directive ♻️
In this post I will show you how to reuse a vue component in a directive without duplicate code or create vanilla javascript replicating this behavior. Sometimes it is necessary to do it because you will have to rewrite all the vue code in vanilla javascript, and sometimes that would be a lot of work, right?