Skip to content

Commit 3fba645

Browse files
committed
Update ru-RU.md
1 parent a3fa197 commit 3fba645

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

i18n/ru-RU.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,15 +1178,15 @@
11781178
### Директивы и ControllerAs
11791179
###### [Style [Y075](#style-y075)]
11801180
1181-
- Use `controller as` syntax with a directive to be consistent with using `controller as` with view and controller pairings.
1181+
- Используйте синтактис`controller as` в директиве, чтобы директива была согласована с использованием синтаксиса `controller as` в паре контроллера и представлении.
11821182
1183-
*Why?*: It makes sense and it's not difficult.
1183+
*Почему?*: Это имет смысл и не так сложно.
11841184
1185-
Note: The directive below demonstrates some of the ways you can use scope inside of link and directive controllers, using controllerAs. I in-lined the template just to keep it all in one place.
1185+
Замечание: Директива ниже демонстрирует некоторые способы, при которых вы можете использовать объект $scope внутри ссылки и контроллере директивы. Я сделал шаблон инлайновый для того, чтобы держать все в одном месте.
11861186
1187-
Note: Regarding dependency injection, see [Manually Identify Dependencies](#manual-annotating-for-dependency-injection).
1187+
Замечание: Что касается внедренной зависимости, смотрите [Определение зависимостей вручную](#manual-annotating-for-dependency-injection).
11881188
1189-
Note: Note that the directive's controller is outside the directive's closure. This style eliminates issues where the injection gets created as unreachable code after a `return`.
1189+
Замечание: Заметьте, что контроллер директивы находится снаружи самой директивы. Такой подход исключает проблемы, когда инжектор создается в недосягаемом код после, например, 'return'.
11901190
11911191
```html
11921192
<div my-example max="77"></div>
@@ -1221,7 +1221,7 @@
12211221
ExampleController.$inject = ['$scope'];
12221222

12231223
function ExampleController($scope) {
1224-
// Injecting $scope just for comparison
1224+
// Внедрение $scope сразу в сравнение
12251225
var vm = this;
12261226

12271227
vm.min = 3;

0 commit comments

Comments
 (0)