Skip to content

Commit c20f1c1

Browse files
authored
To reflect the description of the exercice
1 parent 93d32f9 commit c20f1c1

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/tutorial/src/step-6/App/composition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { ref } from 'vue'
22

33
export default {
44
setup() {
5-
const show = ref(true)
5+
const awesome = ref(true)
66

77
function toggle() {
88
// ...
99
}
1010

1111
return {
12-
show,
12+
awesome,
1313
toggle
1414
}
1515
}

src/tutorial/src/step-6/App/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
data() {
33
return {
4-
show: true
4+
awesome: true
55
}
66
},
77
methods: {

src/tutorial/src/step-6/_hint/App/composition.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { ref } from 'vue'
22

33
export default {
44
setup() {
5-
const show = ref(true)
5+
const awesome = ref(true)
66

77
function toggle() {
8-
show.value = !show.value
8+
awesome.value = !awesome.value
99
}
1010

1111
return {
12-
show,
12+
awesome,
1313
toggle
1414
}
1515
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
export default {
22
data() {
33
return {
4-
show: true
4+
awesome: true
55
}
66
},
77
methods: {
88
toggle() {
9-
this.show = !this.show
9+
this.awesome = !this.awesome
1010
}
1111
}
1212
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<button @click="toggle">toggle</button>
2-
<h1 v-if="show">Vue is awesome!</h1>
2+
<h1 v-if="awesome">Vue is awesome!</h1>
33
<h1 v-else>Oh no 😢</h1>

0 commit comments

Comments
 (0)