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

Commit 99cd86a

Browse files
jamesBrennanpetebacondarwin
jamesBrennan
authored andcommitted
docs(guide:understanding_controllers): remove outdated info
Remove the outdated info in this document related to this API change https://github.com/angular/angular.js/blob/master/src/ng/rootScope.js#L166
1 parent d551d72 commit 99cd86a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
@description
44

55
In Angular, a controller is a JavaScript function(type/class) that is used to augment instances of
6-
angular {@link scope Scope}, excluding the root scope. When you or Angular create a new
7-
child scope object via the {@link api/ng.$rootScope.Scope#$new scope.$new} API , there is an
8-
option to pass in a controller as a method argument. This will tell Angular to associate the
9-
controller with the new scope and to augment its behavior.
6+
angular {@link scope Scope}, excluding the root scope.
107

118
Use controllers to:
129

@@ -82,8 +79,7 @@ instances).
8279

8380
# Associating Controllers with Angular Scope Objects
8481

85-
You can associate controllers with scope objects explicitly via the {@link api/ng.$rootScope.Scope#$new
86-
scope.$new} api or implicitly via the {@link api/ng.directive:ngController ngController
82+
You can associate controllers with scope objects implicitly via the {@link api/ng.directive:ngController ngController
8783
directive} or {@link api/ng.$route $route service}.
8884

8985

0 commit comments

Comments
 (0)