Is there a way to put a v-bind:something
conditionally?
I have this:
<div class="sample">
<div class="some-stuff" :handle=".handle" />
</div>
I want the :handle
bind to be conditionally activated.
Having it duplicated with a v-if
like this:
<div class="sample">
<div v-if="condition" class="some-stuff" :handle=".handle"/>
<div v-else class="some-stuff" />
</div>
costs too much performance, as it has to rerender a bunch of stuff inside the .some-stuff
div.