Question · Vue.js course · Module 2: Template Syntax

The .self Modifier

Which binding calls onSelf only when the element itself is clicked, not its child?

Answer options

  • @click.self="onSelf"
  • @click.stop="onSelf"
  • @click.capture="onSelf"
  • @click.once="onSelf"
Show the answer

Correct answer:

  • @click.self="onSelf"