Question · Vue.js course · Module 14: Directives & Plugins
The v-click-outside directive
Where should the event listener be added in the v-click-outside directive?
Answer options
- On the element itself (el)
- On the document object
- On the window object
- On the element's parent (el.parentNode)
You can check the correct answer by solving this task in the CodeWorlds game.