Skip to content

Commit 41ddc96

Browse files
author
natee
committed
Merge remote-tracking branch 'upstream/master'
2 parents 8d1441a + 802bb54 commit 41ddc96

13 files changed

+134
-132
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
13221322
13231323
*Why?*: The controller `activate` makes it convenient to re-use the logic for a refresh for the controller/View, keeps the logic together, gets the user to the View faster, makes animations easy on the `ng-view` or `ui-view`, and feels snappier to the user.
13241324
1325-
Note: If you need to conditionally cancel the route before you start use the controller, use a [route resolve](#style-y081) instead.
1325+
Note: If you need to conditionally cancel the route before you start using the controller, use a [route resolve](#style-y081) instead.
13261326
13271327
```javascript
13281328
/* avoid */
@@ -2902,6 +2902,8 @@ Use file templates or snippets to help follow consistent styles and patterns. He
29022902
ngservice // creates an Angular service
29032903
ngfilter // creates an Angular filter
29042904
```
2905+
2906+
29052907
**[Back to top](#table-of-contents)**
29062908
29072909
## Yeoman Generator

assets/sublime-angular-snippets/angular.controller.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
})();
2424
]]></content>
2525
<tabTrigger>ngcontroller</tabTrigger>
26-
<scope>source.js</scope>
26+
<scope>text.plain, source.js</scope>
2727
</snippet>

assets/sublime-angular-snippets/angular.directive.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@
3636
})();
3737
]]></content>
3838
<tabTrigger>ngdirective</tabTrigger>
39-
<scope>source.js</scope>
39+
<scope>text.plain, source.js</scope>
4040
</snippet>

assets/sublime-angular-snippets/angular.factory.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
})();
2424
]]></content>
2525
<tabTrigger>ngfactory</tabTrigger>
26-
<scope>source.js</scope>
26+
<scope>text.plain, source.js</scope>
2727
</snippet>

assets/sublime-angular-snippets/angular.filter.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
})();
2020
]]></content>
2121
<tabTrigger>ngfilter</tabTrigger>
22-
<scope>source.js</scope>
22+
<scope>text.plain, source.js</scope>
2323
</snippet>

assets/sublime-angular-snippets/angular.module.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
})();
1010
]]></content>
1111
<tabTrigger>ngmodule</tabTrigger>
12-
<scope>source.js</scope>
12+
<scope>text.plain, source.js</scope>
1313
</snippet>

assets/sublime-angular-snippets/angular.service.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
})();
2121
]]></content>
2222
<tabTrigger>ngservice</tabTrigger>
23-
<scope>source.js</scope>
23+
<scope>text.plain, source.js</scope>
2424
</snippet>

i18n/PT-BR.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ ou *Controladores*
317317

318318
### controllerAs Controller Syntax
319319

320-
- Utilize a sintaxe `controllerAs` ao invés invés da sintaxe `clássica controller com $scope`.
320+
- Utilize a sintaxe `controllerAs` ao invés da sintaxe `clássica controller com $scope`.
321321

322322
- A sintaxe `controllerAs` usa o `this` dentro dos controllers que fica ligado ao `$scope`.
323323

@@ -434,7 +434,7 @@ ou *Controladores*
434434
435435
![Controller Using "Above the Fold"](https://raw.githubusercontent.com/johnpapa/angularjs-styleguide/master/assets/above-the-fold-1.png)
436436
437-
Nota: Se a função possuir apenas 1 linha considere matê-la no topo, desde que a legibilidade não seja afetada.
437+
Nota: Se a função possuir apenas 1 linha considere mantê-la no topo, desde que a legibilidade não seja afetada.
438438
439439
```javascript
440440
/* evite */
@@ -1683,7 +1683,7 @@ ou *Nomenclatura*
16831683
* o nome do arquivo (`avengers.controllers.js`)
16841684
* o nome de componente registrado pelo Angular (`AvengersController`)
16851685
1686-
*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.
1686+
*Por que?*: As convenções de nomenclatura ajudam a fornecer uma maneira consistente de encontrar algo à primeira vista. Consistência dentro do projeto é vital. Consistência dentro de um time é importante. Consistência em toda a empresa proporciona uma enorme eficiência.
16871687
16881688
*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.
16891689

i18n/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The [original English version](http://jpapa.me/ngstyles) is the source of truth,
1515
9. [Spanish](es-ES.md)
1616

1717
## Contributing
18-
Language translations are welcomed and encouraged. The succcess of these translations depends on the community. I highly encourage new translation contributions and help to keep them up to date.
18+
Language translations are welcomed and encouraged. The success of these translations depends on the community. I highly encourage new translation contributions and help to keep them up to date.
1919

2020
All translations must preserve the intention of the original document.
2121

i18n/de-DE.md

Lines changed: 115 additions & 115 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)