Question · Vue.js course · Module 7: Props & Events

Event payload

How do you pass data with an event?

Answer options

  • emit('update').send(payload)
  • emit.update(payload)
  • You cannot pass data with an event
  • emit('update', payload)

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