This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 3
3
@description
4
4
5
5
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.
10
7
11
8
Use controllers to:
12
9
@@ -82,8 +79,7 @@ instances).
82
79
83
80
# Associating Controllers with Angular Scope Objects
84
81
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
87
83
directive} or {@link api/ng.$route $route service}.
88
84
89
85
You can’t perform that action at this time.
0 commit comments