You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: i18n/PT-BR.md
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1642,15 +1642,14 @@ ou *Coletores de exceção*
1642
1642
```
1643
1643
1644
1644
### Route Errors
1645
+
- Gerencie e log todos os erros de routing utilizando o [`$routeChangeError`](https://docs.angularjs.org/api/ngRoute/service/$route#$routeChangeError).
1645
1646
1646
-
- Handle and log all routing errors using [`$routeChangeError`](https://docs.angularjs.org/api/ngRoute/service/$route#$routeChangeError).
1647
-
1648
-
*Why?*: Provides a consistent way handle all routing errors.
1649
-
1650
-
*Why?*: Potentially provides a better user experience if a routing error occurs and you route them to a friendly screen with more details or recovery options.
1647
+
*Por que?*: Fornece uma maneira consistente de gerenciar erros relacionados a routing.
1648
+
1649
+
*Por que?*: Potencialmente fornece uma melhor experiência de usuário se um erro de routing ocorrer e você redirecionar o usuário para uma tela amigável com mais detalhes ou opções de recuperação.
1651
1650
1652
1651
```javascript
1653
-
/*recommended*/
1652
+
/*recomendado*/
1654
1653
functionhandleRoutingErrors() {
1655
1654
/**
1656
1655
* Route cancellation:
@@ -1674,18 +1673,18 @@ ou *Coletores de exceção*
1674
1673
1675
1674
**[⬆ De volta ao topo ⬆](#tabela-de-conte%C3%BAdo)**
1676
1675
1677
-
## Naming
1676
+
## Nomenclatura
1678
1677
1679
-
### Naming Guidelines
1678
+
### Diretrizes de Nomenclatura
1680
1679
1681
-
- Use consistent names for all components following a pattern that describes the component's feature then (optionally) its type. My recommended pattern is `feature.type.js`. There are 2 names for most assets:
1682
-
* the file name (`avengers.controller.js`)
1683
-
* the registered component name with Angular (`AvengersController`)
1684
-
1685
-
*Why?*: Naming conventions help provide a consistent way to find content at a glance. Consistency within the project is vital. Consistency with a team is important. Consistency across a company provides tremendous efficiency.
1680
+
- Use nomes consistentes para todos os componentes seguindo um padrão que descreve a funcionalidade do componente e (opcionalmente) seu tipo. Meu padrão recomendado é `característica.tipo.js`. Existem dois nomes para a maioria dos componentes:
1681
+
* o nome do arquivo (`avengers.controllers.js`)
1682
+
* o nome de componente registrado pelo Angular (`AvengersController`)
1686
1683
1687
-
*Why?*: The naming conventions should simply help you find your code faster and make it easier to understand.
1684
+
*Por que?*: As convenções de nomenclatura ajudam a fornecer uma maneira consistente de encontrar algo à primeira vista. Consistência dentro do projeto e vital. Consistência dentro de um time é importante. Consistência em toda a empresa proporciona uma enorme eficiência.
1688
1685
1686
+
*Por que?*: As convenções de nomenclatura deveriam simplesmente te ajudar a encontrar trechos do seu código mais rápido e torná-lo mais fácil de se entender.
1687
+
1689
1688
### Feature File Names
1690
1689
1691
1690
- Use consistent names for all components following a pattern that describes the component's feature then (optionally) its type. My recommended pattern is `feature.type.js`.
0 commit comments