Created
January 31, 2018 19:08
-
-
Save matthieu-D/da76dd81d893336d0c11b51c4d9232be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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