add solution

2_hello_name
valerio 2025-01-25 11:09:33 +01:00
parent 550c7ecc4b
commit a37263efff
1 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,15 @@
<script setup></script>
<script setup>
const name = 'your-name'
const textClass = 'text'
</script>
<template>
<h1>Hello World</h1>
<h1 :class="textClass">Hello {{ name }}</h1>
</template>
<style scoped></style>
<style scoped>
.text {
color: red;
}
</style>