Creating Custom Directives in Vue.js
Directives are special attributes with the v-
prefix. A directive’s job is to reactively apply side effects to the DOM when the value of its expression changes. Vue.js provides a wide range of directives for you to use. You have probably already used the v-if, v-repeat, v-model and v-show directives.
In this article, I am going to explain the parts of a directive and what is available to use. Then I…