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

defineEmits with validation

Arrange the defineEmits syntax with payload validation:

Items to put in order

  • submit: (payload) =>
  • })
  • payload.email.includes('@')
  • defineEmits({

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