Skip to content

Commit

Permalink
Chore: Translate watchers example #1115
Browse files Browse the repository at this point in the history
  • Loading branch information
tisma95 committed May 6, 2024
1 parent 0fb3df4 commit ffe391f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/guide/essentials/watchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const obj = reactive({ count: 0 })

// cela ne fonctionnera pas car on passe un nombre à watch()
watch(obj.count, (count) => {
console.log(`Count est égale à: ${count}`)
console.log(`Count est égal à: ${count}`)
})
```

Expand All @@ -152,7 +152,7 @@ watch(obj.count, (count) => {
watch(
() => obj.count,
(count) => {
console.log(`Count est égale à: ${count}`)
console.log(`Count est égal à: ${count}`)
}
)
```
Expand Down
2 changes: 1 addition & 1 deletion src/guide/extras/reactivity-in-depth.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ import { ref, watchEffect } from 'vue'
const count = ref(0)

watchEffect(() => {
document.body.innerHTML = `count is: ${count.value}`
document.body.innerHTML = `Count est égal à: ${count.value}`
})

// met à jour le DOM
Expand Down

0 comments on commit ffe391f

Please sign in to comment.