Skip to content

Commit 45ab52b

Browse files
author
Takehana
committed
translated v-if-v-for.md to pt-BR
1 parent 035051c commit 45ab52b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/guide/migration/v-if-v-for.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ badges:
44
- breaking
55
---
66

7-
# {{ $frontmatter.title }} <MigrationBadges :badges="$frontmatter.badges" />
7+
# v-if vs. v-for Precedência
88

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

11-
- **BREAKING**: If used on the same element, `v-if` will have higher precedence than `v-for`
11+
- **QUEBRA**: Se usado no mesmo elemento, `v-if` terá uma maior precedência do que `v-for`
1212

13-
## Introduction
13+
## Introdução
1414

15-
Two of the most commonly used directives in Vue.js are `v-if` and `v-for`. So it's no surprise that there comes a time when developers want to use both together. While this is not a recommended practice, there may be times when this is necessary, so we wanted to provide guidance for how it works.
15+
Duas das diretivas mais comumente usadas em Vue.js são `v-if` e `v-for`. Portanto, não é surpresa que chegue um momento em que os desenvolvedores desejem usar os dois juntos. Embora não seja uma prática recomendada, pode haver momentos em que isso seja necessário, por isso gostaríamos de fornecer orientações sobre como isso funciona.
1616

17-
## 2.x Syntax
17+
## 2.x Sintaxe
1818

19-
In 2.x, when using `v-if` and `v-for` on the same element, `v-for` would take precedence.
19+
No 2.x, quando utilizado `v-if` e `v-for` no mesmo elemento, `v-for` teria precedência.
2020

21-
## 3.x Syntax
21+
## 3.x Sintaxe
2222

23-
In 3.x, `v-if` will always have the higher precedence than `v-for`.
23+
No 3.x, `v-if` terá sempre uma maior precedência do que `v-for`.
2424

25-
## Migration Strategy
25+
## Estratégia de migração
2626

27-
It is recommended to avoid using both on the same element due to the syntax ambiguity.
27+
Recomenda-se evitar o uso de ambos no mesmo elemento devido à ambiguidade da sintaxe.
2828

29-
Rather than managing this at the template level, one method for accomplishing this is to create a computed property that filters out a list for the visible elements.
29+
Em vez de gerenciar isso no nível do modelo, um método para realizar isso é criar uma propriedade computada (computed property) que filtre uma lista para os elementos visíveis.

0 commit comments

Comments
 (0)