Answer the question
In order to leave comments, you need to log in
Is it possible to proxy a Vue directive?
I searched and understand that most likely not, but maybe I'm just not looking for something.
There is a project. There are many components in the project where the built-in Vue directive is used.
Can I proxy it so I can change the input before it gets to the directive?
Type for
something like<p v-show="payload">...</p>
Vue.directives['v-show'].proxy = (payload) => {
return true;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question