Paramètre de directive Vue
<div v-test="'hello world'"></div>
Vue.directive('test', {
bind(el, binding) {
const val = binding.value
console.log(val) // hello world
}
})
florinrelea