@@ -11,10 +11,10 @@ Angular services are:
11
11
12
12
* Lazily instantiated – Angular only instantiates a service when an application component depends
13
13
on it.
14
- * Singletons – Each component is dependent on a service gets a reference to the single instance
14
+ * Singletons – Each component dependent on a service gets a reference to the single instance
15
15
generated by the service factory.
16
16
17
- Angular offers several useful services (like {@link ng.$http `$http`}) but for most applications
17
+ Angular offers several useful services (like {@link ng.$http `$http`}), but for most applications
18
18
you'll also want to {@link services#creating-services create your own}.
19
19
20
20
<div class="alert alert-info">
@@ -215,8 +215,8 @@ In the example, note that:
215
215
{@link ng.$log `$log`} services.
216
216
* The `routeTemplateMonitor` service depends on the built-in {@link ngRoute.$route `$route`}
217
217
service and our custom `batchLog` service.
218
- * Both services use the and array notation to declare their dependencies.
219
- * That the order of identifiers in the array is the same as the order of argument
218
+ * Both services use the array notation to declare their dependencies.
219
+ * The order of identifiers in the array is the same as the order of argument
220
220
names in the factory function.
221
221
222
222
### Registering a Service with `$provide`
@@ -234,7 +234,7 @@ angular.module('myModule', []).config(function($provide) {
234
234
});
235
235
```
236
236
237
- This is technique is often used in unit tests to mock out a service's dependencies.
237
+ This technique is often used in unit tests to mock out a service's dependencies.
238
238
239
239
240
240
## Unit Testing
0 commit comments