Skip to content

Instantly share code, notes, and snippets.

@eserdinyo
Last active September 24, 2018 06:56
Show Gist options
  • Save eserdinyo/f6c1e96b01d8d52dec8a75c9d8f00bcd to your computer and use it in GitHub Desktop.
Save eserdinyo/f6c1e96b01d8d52dec8a75c9d8f00bcd 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 = 'blue';
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment