Skip to content

Instantly share code, notes, and snippets.

@eserdinyo
Created February 12, 2018 13:16
Show Gist options
  • Save eserdinyo/c283c82067648e7cfa3c7e8104b657aa to your computer and use it in GitHub Desktop.
Save eserdinyo/c283c82067648e7cfa3c7e8104b657aa to your computer and use it in GitHub Desktop.
Vue.directive('renk', {
bind(el, binding) {
el.style.backgroundColor = binding.value;
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment