Skip to content

Commit c6442dd

Browse files
committed
Update ru-RU.md
1 parent 19a4059 commit c6442dd

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

i18n/ru-RU.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,19 +1419,19 @@
14191419
angular.module('app').controller('Dashboard', d);function d(a, b) { }
14201420
```
14211421
1422-
### Manually Identify Dependencies
1422+
### Определяйте Зависимости Вручную
14231423
###### [Style [Y091](#style-y091)]
14241424
1425-
- Use `$inject` to manually identify your dependencies for AngularJS components.
1425+
- Используйте `$inject` для ручного определения ваших зависимостей для AngulaJS.
14261426
1427-
*Why?*: This technique mirrors the technique used by [`ng-annotate`](https://github.com/olov/ng-annotate), which I recommend for automating the creation of minification safe dependencies. If `ng-annotate` detects injection has already been made, it will not duplicate it.
1427+
*Почему?*: Этот техника отражает технику использованную в [`ng-annotate`](https://github.com/olov/ng-annotate), которую я рекомендую для автоматического создания зависимостей, безопасных для минификации. Если `ng-annotate` обнаруживает вставку(injection), которая уже была, то она не будет продублирована.
14281428
1429-
*Why?*: This safeguards your dependencies from being vulnerable to minification issues when parameters may be mangled. For example, `common` and `dataservice` may become `a` or `b` and not be found by AngularJS.
1429+
*Почему?*: Это гарантирует вашим зависимостям защиту от повреждений, которую может нанести минификация, путем урезания и укорачивания переменных. Например, `common` и `dataservice` превратятся `a` и `b`, и не будут найдены средой AngularJS.
14301430
1431-
*Why?*: Avoid creating in-line dependencies as long lists can be difficult to read in the array. Also it can be confusing that the array is a series of strings while the last item is the component's function.
1431+
*Почему?*: Избегайте создания однострочных зависимостей в виде длинных списков, которые трудно читаемы в массиве. Еще в вводят в конфуз, то что такие массивы сосотоят из серии строк, в то время как последний элемент - это компонент-функция.
14321432
14331433
```javascript
1434-
/* avoid */
1434+
/* избегайте этого */
14351435
angular
14361436
.module('app')
14371437
.controller('Dashboard',
@@ -1441,7 +1441,7 @@
14411441
```
14421442
14431443
```javascript
1444-
/* avoid */
1444+
/* избегайте этого */
14451445
angular
14461446
.module('app')
14471447
.controller('Dashboard',
@@ -1452,7 +1452,7 @@
14521452
```
14531453
14541454
```javascript
1455-
/* recommended */
1455+
/* рекомендовано */
14561456
angular
14571457
.module('app')
14581458
.controller('Dashboard', Dashboard);
@@ -1463,27 +1463,27 @@
14631463
}
14641464
```
14651465
1466-
Note: When your function is below a return statement the $inject may be unreachable (this may happen in a directive). You can solve this by either moving the $inject above the return statement or by using the alternate array injection syntax.
1466+
Замечание: Если функция снизу является возращаемым значением, то $inject может быть недостижымым (это может случится в директиве). Это можно решить перемещением $inject выше, чем возращаемое значение, либо использовать альтернативный синтаксис массива вставок.
14671467
1468-
Note: [`ng-annotate 0.10.0`](https://github.com/olov/ng-annotate) introduced a feature where it moves the `$inject` to where it is reachable.
1468+
Замечание: [`ng-annotate 0.10.0`](https://github.com/olov/ng-annotate) ввело возможность, когда `$inject` переносится туда, где оно доступно.
14691469
14701470
```javascript
1471-
// inside a directive definition
1471+
// внутри определения директивы
14721472
function outer() {
14731473
return {
14741474
controller: DashboardPanel,
14751475
};
14761476

1477-
DashboardPanel.$inject = ['logger']; // Unreachable
1477+
DashboardPanel.$inject = ['logger']; // Недоступный код
14781478
function DashboardPanel(logger) {
14791479
}
14801480
}
14811481
```
14821482
14831483
```javascript
1484-
// inside a directive definition
1484+
// внутри определения директивы
14851485
function outer() {
1486-
DashboardPanel.$inject = ['logger']; // reachable
1486+
DashboardPanel.$inject = ['logger']; // Доступный код
14871487
return {
14881488
controller: DashboardPanel,
14891489
};

0 commit comments

Comments
 (0)