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

docs(guide): fix dropped word in controller description #7026

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
5 changes: 2 additions & 3 deletions docs/content/guide/di.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,12 @@ someModule.controller('MyController', ['$scope', 'dep1', 'dep2', function($scope
This avoids the creation of global functions for controllers and also protects against minification.

Controllers are special in that, unlike services, there can be many instances of them in the
application. For example, there would be one instance of a for every instance of the `ng-controller`
directive in the template.
application. For example, there would be one instance for every `ng-controller` directive in the template.

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
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.