Skip to content

Commit a77e84c

Browse files
authored
Merge pull request #151 from thiagotakehana/translate-file-v-if-v-for.md
translated v-if-v-for.md to pt-BR
2 parents ab28cc9 + 949b474 commit a77e84c

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
@@ -1,29 +1,29 @@
11
---
2-
title: v-if vs. v-for Precedence
2+
title: Precedência de v-if vs. v-for
33
badges:
44
- breaking
55
---
66

77
# {{ $frontmatter.title }} <MigrationBadges :badges="$frontmatter.badges" />
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+
## Sintaxe v2.x
1818

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

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

23-
In 3.x, `v-if` will always have the higher precedence than `v-for`.
23+
Na v3.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 à nível de _template_, um método para realizar isso é criar um dado computado (computed property) que filtre uma lista para os elementos visíveis.

0 commit comments

Comments
 (0)