- Detecting a Click Outside an Element in JavaScript
- An Easy Way to Detect Clicks Outside an Element in Vue
- Directives accept only one argument.
- Directives accept multiple modifiers, specified by the dot.
- The benefit of modifiers is that we can use multiple at the same time.
- A common convention is to use double underscores before and after the property name.
- Common directives are v-if, v-for and v-model.