update solution

7_löschen_button
valerio 2025-01-27 18:07:02 +01:00 committed by Ann-Kathrin Stracke
parent 6a91d56794
commit e697e85cd3
1 changed files with 10 additions and 8 deletions

View File

@ -2,25 +2,27 @@
import {ref} from "vue";
import InputMask from "@/components/InputMask.vue";
const name = 'your-name'
const textClass = 'text'
const counter = ref(0)
function incrementCounter() {
counter.value++
}
const name = ref('')
setTimeout(() => {
name.value = 'Bob'
}, 1000)
</script>
<template>
<h1 :class="textClass">Hello {{ name }}</h1>
<h1>Hello {{ name }}</h1>
<button @click="incrementCounter">click me for cookies</button>
You have {{ counter }} cookies
<InputMask/>
</template>
<style scoped>
.text {
color: red;
}
</style>
<style scoped></style>