File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,12 @@ dependency lookup responsibility to the injector by declaring the dependencies a
102
102
103
103
Notice that by having the `ng-controller` instantiate the class, it can satisfy all of the
104
104
dependencies of `MyController` without the controller ever knowing about the injector. This is
105
- the best outcome. The application code simply ask for the dependencies it needs, without having to
105
+ the best outcome. The application code simply asks for the dependencies it needs, without having to
106
106
deal with the injector. This setup does not break the Law of Demeter.
107
107
108
108
# Dependency Annotation
109
109
110
- How does the injector know what service needs to be injected?
110
+ How does the injector know what service needs to be injected?
111
111
112
112
The application developer needs to provide annotation information that the injector uses in order
113
113
to resolve the dependencies. Throughout Angular certain API functions are invoked using the
@@ -137,7 +137,7 @@ http://www.pretotyping.org/ pretotyping}, and demo applications.
137
137
# `$inject` Annotation
138
138
139
139
To allow the minifers to rename the function parameters and still be able to inject right services
140
- the function needs to be annotate with the `$inject` property. The `$inject` property is an array
140
+ the function needs to be annotated with the `$inject` property. The `$inject` property is an array
141
141
of service names to inject.
142
142
143
143
<pre>
You can’t perform that action at this time.
0 commit comments