Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit df3d739

Browse files
gkalpakcaitp
authored andcommitted
docs(guide/*): fix typos and links
Fix some typos and link-errors introduced in d1ccf17. Related to #9786 Closes #9800
1 parent 99ec8d6 commit df3d739

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

docs/content/guide/bootstrap.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ If the {@link ng.directive:ngApp `ng-app`} directive is found then Angular will:
7373
</html>
7474
```
7575

76-
As a best practice, consider consider adding an `ng-strict-di` directive on the same element as
76+
As a best practice, consider adding an `ng-strict-di` directive on the same element as
7777
`ng-app`:
7878

7979

docs/content/guide/di.ngdoc

+7-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ and "value" components as dependencies, but they can also be provided with speci
2929
components 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
3333
configuration.
3434

3535
See {@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
6161
above.
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-
133132
To allow the minifiers to rename the function parameters and still be able to inject the right services,
134133
the function needs to be annotated with the `$inject` property. The `$inject` property is an array
135134
of service names to inject.
@@ -175,7 +174,7 @@ However this method will not work with JavaScript minifiers/obfuscators because
175174
rename parameters.
176175

177176
Tools 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.
179178
If you decide to take this approach, you probably want to use `ng-strict-di`.
180179

181180
Because of these caveats, we recommend avoiding this style of annotation.

0 commit comments

Comments
 (0)