Vue’s popular custom directive newly implemented and an intro to this key piece of Vue mastery. [updated] — TL;DR: +Custom Directives allow for reusable interactions with elements
+Register directives with Vue.directive(‘directive-name’, directiveObject)
+Use directive with v-directive-name:arg.modifier.modifier2=”value”
+The arg, modifier, & value all provide ways of passing the directive data
+Directives operate by calling functions on lifecycle hooks
+The function receives arguments: el, binding, vnode & oldVnode
+Access passed data with binding.arg, b…g.value & b…g.modifiers
+Access the…