Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created January 31, 2018 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/da76dd81d893336d0c11b51c4d9232be to your computer and use it in GitHub Desktop.
Save matthieu-D/da76dd81d893336d0c11b51c4d9232be to your computer and use it in GitHub Desktop.
Vue.directive('CustomShow',{
bind: function(el, binding, vnode) {
const display = binding.value ? 'block': 'none';
el.style.display = display;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment