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

Disabling inheritAttrs

How do you disable automatic attribute inheritance?

Answer options

  • inheritAttrs = false in <template>
  • Through props.inheritAttrs
  • You cannot disable it
  • defineOptions({ inheritAttrs: false })

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