Skip to content

Commit cce7ff4

Browse files
authored
Merge pull request #152 from thiagotakehana/translate-watch
translate watch.md to pt-BR
2 parents 58d519a + 2d0b106 commit cce7ff4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/guide/migration/watch.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
---
2-
title: Watch on Arrays
2+
title: Observar Arrays
33
badges:
44
- breaking
55
---
66

77
# {{ $frontmatter.title }} <MigrationBadges :badges="$frontmatter.badges" />
88

9-
## Overview
9+
## Visão Geral
1010

11-
- **BREAKING**: When watching an array, the callback will only trigger when the array is replaced. If you need to to trigger on mutation, the `deep` option must be specified.
11+
- **QUEBRA**: Ao observar um Array, o _callback_ só será acionado quando o Array for completamente substituído. Se você precisar acionar em mutação, a opção `deep` deve ser especificada.
1212

13-
## 3.x Syntax
13+
## Sintaxe v3.x
1414

15-
When using [the `watch` option](/api/options-data.html#watch) to watch an array, the callback will only trigger when the array is replaced. In other words, the watch callback will no longer be triggered on array mutation. To trigger on mutation, the `deep` option must be specified.
15+
Ao usar [a opção `watch`](/api/options-data.html#watch) para observar um Array, o _callback_ só será disparado quando o Array for substituído. Em outras palavras, o _callback_ do observador não será mais acionado na mutação do Array. Para acionar em mutação, a opção `deep` deve ser especificada.
1616

1717
```js
1818
watch: {
1919
bookList: {
2020
handler(val, oldVal) {
21-
console.log('book list changed')
21+
console.log('lista de livros alterada')
2222
},
2323
deep: true
2424
},
2525
}
2626
```
2727

28-
## Migration Strategy
28+
## Estratégia de Migração
2929

30-
If you rely on watching array mutations, add the `deep` property to ensure that your callback is triggered correctly.
30+
Se você depende da observação de mutações de Arrays, adicione a propriedade `deep` para garantir que seu retorno de chamada (_callback_) seja disparado corretamente.

0 commit comments

Comments
 (0)