is it possible to set a directive on a condition?
I have a "sticky" directive to make elements sticky on the screen. And I have a social share component where I am using it
<tempalte>
<div class="social-share" v-sticky>
....
</div>
</template>
However, now I need a condition. I would love making this over a prop.
<social-share :is-sticky="true">
Is there an easy way to add the directive?
I've tried to bind it with v-bind / :
<div class="social-share" :v-sticky="isSticky">
But this will end up, with rendering "v-sticky" into the tag.