1 files added
1 files modified
| | |
| | | :info-text="activeUser.description" |
| | | :role="activeUser.role" |
| | | ></user-info> |
| | | <course-goals> |
| | | <template #default="slotProps"> |
| | | <h2>{{ slotProps.item }}</h2> |
| | | <p>{{ slotProps['anotherProp'] }}</p> |
| | | <p>{{ slotProps.ciccio }}</p> |
| | | </template> |
| | | </course-goals> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import TheHeader from './components/TheHeader.vue'; |
| | | import BadgeList from './components/BadgeList.vue'; |
| | | import UserInfo from './components/UserInfo.vue'; |
| | | import CourseGoals from './components/CourseGoals.vue'; |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | // TheHeader: TheHeader, |
| | | TheHeader, |
| | | BadgeList, |
| | | UserInfo |
| | | UserInfo, |
| | | CourseGoals, |
| | | }, |
| | | data() { |
| | | return { |
New file |
| | |
| | | <template> |
| | | <ul> |
| | | <li v-for="goal in goals" :key="goal"> |
| | | <slot :item="goal" another-prop="qualcosa" ciccio="ciccio"></slot> |
| | | </li> |
| | | </ul> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | goals: ['Finish the course', 'Learn Vue'], |
| | | } |
| | | } |
| | | } |
| | | </script> |