<template>
<div>
<img v-directive:dynamic_literal />
</div>
</template>
E.g. dynamic_literal = 'ok' such that in custom directive:
Vue.directive('directive', {
bind(el, binding) { binding.arg // should return 'ok'
How can I use dynamic_literal as a variable or a constant whose value should be assigned under data or prop.
I tried with v-directive:{{dynamic_literal}} and :v-directive="dynamic_literal" but no use.
Thanks in advance!