Answers for "vue directive parameter"

1

vue directive parameter

<div v-test="'hello world'"></div>

Vue.directive('test', {
  bind(el, binding) {
  	const val = binding.value
  	console.log(val) // hello world
  }
})
Posted by: Guest on June-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language