Skip to content

Instantly share code, notes, and snippets.

@eserdinyo
Last active September 24, 2018 07:11
Show Gist options
  • Save eserdinyo/c9745a5190a227f82e3df157d013135e to your computer and use it in GitHub Desktop.
Save eserdinyo/c9745a5190a227f82e3df157d013135e to your computer and use it in GitHub Desktop.
import Vue from 'vue'
import App from './App.vue'
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