mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-21 04:41:51 +00:00
docs(guide/di): fix some small grammatical issues
This commit is contained in:
parent
d5b62465f0
commit
efe8ad51ed
1 changed files with 3 additions and 3 deletions
|
|
@ -102,7 +102,7 @@ dependency lookup responsibility to the injector by declaring the dependencies a
|
||||||
|
|
||||||
Notice that by having the `ng-controller` instantiate the class, it can satisfy all of the
|
Notice that by having the `ng-controller` instantiate the class, it can satisfy all of the
|
||||||
dependencies of `MyController` without the controller ever knowing about the injector. This is
|
dependencies of `MyController` without the controller ever knowing about the injector. This is
|
||||||
the best outcome. The application code simply ask for the dependencies it needs, without having to
|
the best outcome. The application code simply asks for the dependencies it needs, without having to
|
||||||
deal with the injector. This setup does not break the Law of Demeter.
|
deal with the injector. This setup does not break the Law of Demeter.
|
||||||
|
|
||||||
# Dependency Annotation
|
# Dependency Annotation
|
||||||
|
|
@ -137,7 +137,7 @@ http://www.pretotyping.org/ pretotyping}, and demo applications.
|
||||||
# `$inject` Annotation
|
# `$inject` Annotation
|
||||||
|
|
||||||
To allow the minifers to rename the function parameters and still be able to inject right services
|
To allow the minifers to rename the function parameters and still be able to inject right services
|
||||||
the function needs to be annotate with the `$inject` property. The `$inject` property is an array
|
the function needs to be annotated with the `$inject` property. The `$inject` property is an array
|
||||||
of service names to inject.
|
of service names to inject.
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue