@@ -29,7 +29,7 @@ and "value" components as dependencies, but they can also be provided with speci
2929components as dependencies. Note that you cannot inject "providers" into `run` blocks.
3030
3131- The `config` method accepts a function, which can be injected with "provider" and "constant"
32- components as dependencies. Note that you cannot inject "service" or "value" components into
32+ components as dependencies. Note that you cannot inject "service" or "value" components into
3333configuration.
3434
3535See {@link module#module-loading-dependencies Modules} for more details about `run` and `config`
@@ -56,8 +56,8 @@ angular.module('myModule', [])
5656
5757### Module Methods
5858
59- We can specify functions to run at configuration and run time for a module by calling the `run` and
60- `config ` methods. These functions are injectable with dependencies just like the factory functions
59+ We can specify functions to run at configuration and run time for a module by calling the `config`
60+ and `run ` methods. These functions are injectable with dependencies just like the factory functions
6161above.
6262
6363```js
@@ -93,8 +93,9 @@ Moreover, additional dependencies are made available to Controllers:
9393* {@link scope `$scope`}: Controllers are associated with an element in the DOM and so are
9494 provided with access to the {@link scope scope}. Other components (like services) only have
9595 access to the {@link $rootScope `$rootScope`} service.
96- * {@link `$route`} resolves: If a controller is instantiated as part of a route, then any values that
97- are resolved as part of the route are made available for injection into the controller.
96+ * {@link ngRoute.$routeProvider#when resolves}: If a controller is instantiated as part of a route,
97+ then any values that are resolved as part of the route are made available for injection into the
98+ controller.
9899
99100
100101## Dependency Annotation
@@ -128,8 +129,6 @@ parameters in the function declaration.
128129
129130### `$inject` Property Annotation
130131
131- Rather than pass an array to the `controller
132-
133132To allow the minifiers to rename the function parameters and still be able to inject the right services,
134133the function needs to be annotated with the `$inject` property. The `$inject` property is an array
135134of service names to inject.
@@ -175,7 +174,7 @@ However this method will not work with JavaScript minifiers/obfuscators because
175174rename parameters.
176175
177176Tools like [ng-annotate](https://github.com/olov/ng-annotate) let you use implicit dependency
178- annotations in your app and automatically add annotations array notation prior to minifying.
177+ annotations in your app and automatically add inline array annotations prior to minifying.
179178If you decide to take this approach, you probably want to use `ng-strict-di`.
180179
181180Because of these caveats, we recommend avoiding this style of annotation.
0 commit comments