Skip to content

Commit 9b20d20

Browse files
committed
Translate Scope
1 parent 3292023 commit 9b20d20

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README-ja-jp.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ _このドキュメントは[AngularJS in Patterns](https://github.com/mgechev/a
1111
* [AngularJSの概要](#AngularJSの概要)
1212
* [パーシャル](#パーシャル)
1313
* [コントローラ](#コントローラ)
14-
* [Scope](#scope)
14+
* [スコープ](#スコープ)
1515
* [Directives](#directives)
1616
* [Filters](#filters)
1717
* [Services](#services)
@@ -122,13 +122,13 @@ function MyController($scope) {
122122

123123
全てのカスタム・エレメント、コメント、また、クラスは事前に定義されている場合、AngularJSの *ディレクティブ* として認識されます。
124124

125-
### Scope
125+
### スコープ
126126

127-
In AngularJS scope is a JavaScript object, which is exposed to the partials. The scope could contain different properties - primitives, objects or methods. All methods attached to the scope could be invoked by evaluation of AngularJS expression inside the partials associated with the given scope or direct call of the method by any component, which keeps reference to the scope. By using appropriate *directives*, the data attached to the scope could be binded to the view in such a way that each change in the partial will reflect a scope property and each change of a scope property will reflect the partial.
127+
AngularJSではスコープはパーシャルに露出したJavaScriptのオブジェクトです。スコープはプリミティブ、オブジェクト、メソッドなど異なるプロパティを含んでいます。スコープに追加された全てのメソッドはスコープと関連付けられたパーシャルの中でAngularJSのエクスプレッションによって評価され実行されます。また、スコープへの参照を持つコンポーネントから直接呼び出されます。適切な *ディレクティブ* を使うことでスコープに追加されたデータはビューにバインディングされ、パーシャルの中の変更がスコープのプロパティに反映されます。また、プロパティの変更がパーシャルに反映されます。
128128

129-
Another important characteristics of the scopes of any AngularJS application is that they are connected into a prototypical chain (except scopes, which are explicitly stated as *isolated*). This way any child scope will be able to invoke methods of its parents since they are properties of its direct or indirect prototype.
129+
AngularJSアプリケーションのスコープのもう一つの重要な特性は、それがプロトタイプ・チェーンと結びついていることです( 明示的に *分離* されたものを除きます)。これにより、子のスコープは親のスコープのメソッドを実行することができます。この場合のメソッドは子のスコープの直接、または関節のプロトタイプのプロパティだからです。
130130

131-
Scope inheritance is illustrated in the following example:
131+
スコープの継承は次の例で説明します:
132132

133133
```HTML
134134
<div ng-controller="BaseCtrl">
@@ -153,7 +153,7 @@ function ChildCtrl($scope) {
153153
}
154154
```
155155

156-
With `div#child` is associated `ChildCtrl` but since the scope injected inside `ChildCtrl` inherits prototypically from its parent scope (i.e. the one injected inside `BaseCtrl`) the method `foo` is accessible by `button#parent-method`.
156+
`div#child` `ChildCtrl` と結びついていますが、 `ChildCtrl` に注入されたスコープは親のスコープ( `BaseCtrl` に注入されたスコープ )からプロトタイプ継承をしているので、 `foo` メソッドは `button#parent-method` でアクセス可能になっています。
157157

158158
### Directives
159159

0 commit comments

Comments
 (0)