When we added the v-mask library to our project, and added the plugin within main.js, the library created a new directive for us, v-mask. What exactly is a directive, though? We know it looks like an HTML attribute, but what else?
A directive can be defined as follows:
Okay, so it looks like we have a special attribute that can modify the element. That sounds exactly like what we saw happen when we applied to the input element. But, how does the actual expression or value that we are putting into this directive work?