Add other directive to the component in custom directive #450
SnowingFox
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example about a custom directive
v-form
it can help us to use
v-model
, then we can use function expression and bindv-model
to another contextDirective
Component
useForm
As same as
<input v-model="model" />
, it can be transformed intowe can do it in custom directive, not limited to compiler, give developer more free space to coding.
Beta Was this translation helpful? Give feedback.
All reactions