v.0.1.0 pinia, albums-store

This commit is contained in:
tiijay
2026-09-19 11:24:27 +02:00
parent 0d1d1fb24d
commit 9d3da3361d
9 changed files with 162 additions and 58 deletions
+8 -1
View File
@@ -4,13 +4,20 @@ import { ref } from "vue";
const msg = ref<string>("Tom is building a vue template, oh yeah");
const status = ref<boolean>(true);
defineProps({
hide: {
type: Boolean,
default: false,
},
});
// Define function directly
const toggleStatus = (): void => {
status.value = !status.value;
};
</script>
<template>
<template v-if="hide">
<div class="card">
<div class="tj">{{ msg }} {{ status }}</div>
<p v-if="status">{{ msg }} {{ status }}</p>