The Delightful World of Vue
Props: Passing Info into a Child Component
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 2

Suppose we have a shiny Title component that looks like this:

<template>
    <div>{{ title }}</div>
</template>

<script>
export default {
    name: 'TitleComponent',
};
</script>

We want other components to be able to pass a title to this component as a prop. Which option would NOT be a valid way to define the title prop?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.