From ac100de8d8e0fc85e34cde9aec6262259b12f96c Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Mon, 30 Dec 2024 21:53:48 +0100 Subject: [PATCH] style scoped locali --- 08 - component communication/cmp-communication-assignment-solution/src/components/ActiveUser.vue | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/08 - component communication/cmp-communication-assignment-solution/src/components/ActiveUser.vue b/08 - component communication/cmp-communication-assignment-solution/src/components/ActiveUser.vue new file mode 100644 index 0000000..6395a92 --- /dev/null +++ b/08 - component communication/cmp-communication-assignment-solution/src/components/ActiveUser.vue @@ -0,0 +1,21 @@ +<template> + <section> + <h2>{{ username }}</h2> + <h3>{{ userage }} Years</h3> + </section> +</template> + +<script> +export default { + props: { + username: { + type: String, + required: true + }, + userage: { + type: Number, + required: true + } + } +}; +</script> -- Gitblit v1.8.0