Fall-through Attributes & Class Bindings


  • What is a fall-though attribute?
  • What must a child component have in order to utilize fall-through attributes?
  • What happens when a parent passes a class or style attribute to a child and the child already has an attribute with the same name?
  • What happens when a parent registers an event lister to a child component?
  • What macro do we call in a component to set configuration options for the component?
  • What configuration option do we use to prohibit the inheritance of attributes?

 

  • What Vue built-in property can we use in the <template> to access fall-through attributes received by a component?
  • How can the fall-through attribute named shoe-size be accessed in a <template>?
  • How do you pass all fall-through attributes to a non-root element in the component’s <template>?

 

  • How do we access fall-through attributes in a component’s <script setup>?
  • Is the object returned from useAttrs() reactive?