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

docs(di.ngdoc): Fixed typos #7480

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
8 changes: 4 additions & 4 deletions docs/content/guide/di.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ rename the method parameter names. This makes this way of annotating only useful

### `$inject` Property Annotation

To allow the minifers to rename the function parameters and still be able to inject right services,
To allow the minifiers to rename the function parameters and still be able to inject right services,
the function needs to be annotated with the `$inject` property. The `$inject` property is an array
of service names to inject.

Expand Down Expand Up @@ -224,7 +224,7 @@ dependencies.
- The `run` and `config` methods accept a function, which can also be injected with "service"
components as dependencies.

- Controllers are defined by an constructor function, which can be injected with any of the "service"
- Controllers are defined by a constructor function, which can be injected with any of the "service"
components as dependencies, but they can also be provided with special dependencies. See "DI in
Controllers" below.

Expand Down Expand Up @@ -288,7 +288,7 @@ application. For example, there would be one instance for every `ng-controller`
Moreover, additional dependencies are made available to Controllers:

* {@link scope `$scope`}: Controllers are always associated with a point in the DOM and so are provided with
access to the {@link scope scope} at that point. Other components, such as servies only have access to the
access to the {@link scope scope} at that point. Other components, such as services 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.