We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 757a02a commit b443b3aCopy full SHA for b443b3a
src/App.vue
@@ -11,9 +11,13 @@
11
</template>
12
13
<script>
14
+import { ref } from 'vue';
15
+
16
export default {
17
setup() {
- let name = 'Kossie Coder1';
18
+ const name = ref({
19
+ id: 1
20
+ });
21
22
// const greeting = (name) => {
23
// return 'Hello, ' + name;
@@ -22,7 +26,7 @@ export default {
26
// const greet = greeting(name);
27
24
28
const updateName = () => {
25
- name = 'Kossie Coder';
29
+ name.value.id = 2;
30
console.log(name)
31
};
32
0 commit comments