From bae1330af41d5475709da06fdb3f03ff199635b6 Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Sun, 05 Jan 2025 17:59:41 +0100 Subject: [PATCH] scoped slot --- 09 - deeper into components/cmp-adv-01-starting-setup/src/App.vue | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/09 - deeper into components/cmp-adv-01-starting-setup/src/App.vue b/09 - deeper into components/cmp-adv-01-starting-setup/src/App.vue index a411817..17fc85e 100644 --- a/09 - deeper into components/cmp-adv-01-starting-setup/src/App.vue +++ b/09 - deeper into components/cmp-adv-01-starting-setup/src/App.vue @@ -7,6 +7,13 @@ :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> @@ -14,6 +21,7 @@ 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: { @@ -21,7 +29,8 @@ // TheHeader: TheHeader, TheHeader, BadgeList, - UserInfo + UserInfo, + CourseGoals, }, data() { return { -- Gitblit v1.8.0