@@ -135,7 +135,7 @@ These can be used interchangeably as you see fit and are equivalent. |
135 | 135 |
|
136 | 136 | ### Implicit Dependencies |
137 | 137 |
|
138 | | -The simplest way to get hold of the dependencies, is to assume that the function parameter names |
| 138 | +The simplest way to get hold of the dependencies is to assume that the function parameter names |
139 | 139 | are the names of the dependencies. |
140 | 140 |
|
141 | 141 | ```js |
@@ -144,7 +144,7 @@ function MyController($scope, greeter) { |
144 | 144 | } |
145 | 145 | ``` |
146 | 146 |
|
147 | | -Given a function the injector can infer the names of the service to inject by examining the |
| 147 | +Given a function the injector can infer the names of the services to inject by examining the |
148 | 148 | function declaration and extracting the parameter names. In the above example `$scope`, and |
149 | 149 | `greeter` are two services which need to be injected into the function. |
150 | 150 |
|
@@ -154,7 +154,7 @@ rename the method parameter names. This makes this way of annotating only useful |
154 | 154 |
|
155 | 155 | ### `$inject` Property Annotation |
156 | 156 |
|
157 | | -To allow the minifiers to rename the function parameters and still be able to inject right services, |
| 157 | +To allow the minifiers to rename the function parameters and still be able to inject the right services, |
158 | 158 | the function needs to be annotated with the `$inject` property. The `$inject` property is an array |
159 | 159 | of service names to inject. |
160 | 160 |
|
@@ -166,7 +166,7 @@ MyController['$inject'] = ['$scope', 'greeter']; |
166 | 166 | ``` |
167 | 167 |
|
168 | 168 | In this scenario the ordering of the values in the `$inject` array must match the ordering of the |
169 | | -arguments to inject. Using above code snippet as an example, `$scope` will be injected into |
| 169 | +arguments to inject. Using the above code snippet as an example, `$scope` will be injected into |
170 | 170 | `renamed$scope` and `greeter` into `renamedGreeter`. Care must be taken that the `$inject` |
171 | 171 | annotation is kept in sync with the actual arguments in the function declaration. |
172 | 172 |
|
@@ -206,7 +206,7 @@ someModule.factory('greeter', ['$window', function(renamed$window) { |
206 | 206 | }]); |
207 | 207 | ``` |
208 | 208 |
|
209 | | -Here, instead of simply providing the factory function, we pass an array, whose elements consist of |
| 209 | +Here, instead of simply providing the factory function, we pass an array whose elements consist of |
210 | 210 | a list of strings (the names of the dependencies) followed by the function itself. |
211 | 211 |
|
212 | 212 | Keep in mind that all of the annotation styles are equivalent and can be used anywhere in Angular |
|