Click in order · Vue.js course · Module 7: Props & Events

Event emission syntax

Arrange the code for emitting an event with data:

Items to click

  • const emit =
  • emit('send-signal',
  • { message: 'OK' })
  • defineEmits(['send-signal'])

You can check the correct answer by solving this task in the CodeWorlds game.