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

Update di.ngdoc #7232

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/content/guide/di.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ someModule.factory('greeter', ['$window', function(renamed$window) {
```

Here, instead of simply providing the factory function, we pass an array, whose elements consist of
a list of strings (the names of the depenendencies) followed by the function itself.
a list of strings (the names of the dependencies) followed by the function itself.

Keep in mind that all of the annotation styles are equivalent and can be used anywhere in Angular
where injection is supported.
Expand Down Expand Up @@ -291,4 +291,4 @@ Moreover, additional dependencies are made available to Controllers:
access to the {@link scope scope} at that point. Other components, such as servies only have access to the
singleton {@link $rootScope} service.
* {@link $route} resolves: If a controller is instantiated as part of a route, then any values that
are resolved as part of the route are made available for injection into the controller.
are resolved as part of the route are made available for injection into the controller.