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

docs(guide/Dependency Injection): minor punctuation fixes #12268

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 @@ -163,8 +163,8 @@ someModule.controller('MyController', function($scope, greeter) {
});
```

Given a function the injector can infer the names of the services to inject by examining the
function declaration and extracting the parameter names. In the above example `$scope`, and
Given a function, the injector can infer the names of the services to inject by examining the
function declaration and extracting the parameter names. In the above example, `$scope` and
`greeter` are two services which need to be injected into the function.

One advantage of this approach is that there's no array of names to keep in sync with the
Expand Down